[Issue 1445] New: Add default library options to sc.ini / dmd.conf
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 27 11:42:07 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1445
Summary: Add default library options to sc.ini / dmd.conf
Product: D
Version: 1.018
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: sean at f4.ca
It would be quite useful if the DMD configuration file provided a means of
specifying the name of the default libraries to link based on the presence of
"-release" on the command-line. In short, I'd like for something like this to
happen:
* Specify "phobos.lib" as the library to use for release builds and
"phobos_d.lib" as the library to use for debug builds.
* Command "dmd foo.d" links "phobos_d.lib" as specified in sc.ini
* Command "dmd -release foo.d" links "phobos.lib" as specified in sc.ini
If either of these fields are not set, the built-in default (phobos.lib or
libphobos.a) will be used instead.
This has the advantage of both simplifying the use of alternate runtime
libraries and providing a means of linking a debug lib when doing so may be
beneficial to the user.
--
More information about the Digitalmars-d-bugs
mailing list