From: Eric B. <er...@go...> - 2008-01-22 11:35:02
|
Colin Adams wrote: > On 22/01/2008, Eric Bezault <er...@go...> wrote: >> Eric Bezault wrote: > >>>> Apart from the two typos, the sentence seems to suggest that <option >>>> name="garbage_collector" value="boehm"/> should now work. >>>> >>>> But there is no confirmation of this in the section on gec itself. > >> It's now implemented in svn#6276. > > Thanks. > > What happens if this option is supplied, but BOEHM_GC is not set? Is > an error message issued, or does compilation go ahead assuming the > value is actually set to "none"? Even if the environment variable BOEHM_GC is not set, gec will generate code that works with the Boehm GC. Indeed, it is possible that one wants to generate the C code, and then compile it later on another computer where the Boehm GC is installed. Furthermore, the environment variable BOEHM_GC is something that is used in the config files in $GOBO/tool/gec/config/c, but it is just a convention and it is possible to write config files that don't use this environment variable. > If the former, then is it possible to test to see if an environment > variable is set within a system.xace file? <option name="garbage_collector" value="boehm" if="${BOEHM_GC}"/> -- Eric Bezault mailto:er...@go... http://www.gobosoft.com |