[Issue 7044] Missing a way to control the order of arguments passed to the linker makes impossible to link some programs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed May 20 16:56:55 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=7044

--- Comment #39 from Walter Bright <bugzilla at digitalmars.com> ---
Here's my evil plan:

Add a switch -confsection=sectionname which will cause [sectionname] in the
config file to be parsed. There can be multiple such switches and sections, 
they'll be parsed in lexical order.

Note that:

    DFLAGS += string

can be handled without adding new features with:

    DFLAGS = %DFLAGS% string

The current way the config file is read twice wreaks havoc with the order in
which sections are processed and things like appending to existing environment
variables. This all has to be redone, but I'd like a green light on it being an
acceptable resolution of this bugzilla issue before investing the effort.

(Currently order of evaluation is undocumented.)

I decided not to have -version=identifier do this, because inevitably someone
will have a problem with it and want another switch to be able to do them
independently.

Calling it -confsection will place it next to the -conf switch in the
documentation, making the connection easily discoverable.

--


More information about the Digitalmars-d-bugs mailing list