Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
February 20, 2007 [Issue 987] New: Add DMD compiler switch to prevent automatic linking to phobos.lib/libphobos.a | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=987 Summary: Add DMD compiler switch to prevent automatic linking to phobos.lib/libphobos.a Product: D Version: 1.006 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P1 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: thecybershadow@gmail.com Currently, the compiler (dmd.exe) forces to link against the standard library with a fixed name. This greatly stagnates the use of alternating standard libraries, like Tango, which have to resort to replacing the standard "phobos.lib" (or "libphobos.a") file - which makes it difficult to work with both Phobos and Tango projects at the same time. Personally, I consider adding a switch which allows to specify an alternate standard library to link to of very high importance. The current set-up prevents complex build systems, like DSSS, to allow specification of a project's used standard library - and thus facilitate building software and dependencies independently of the currently-configured library. (Currently, your D compiler can either be in Phobos mode or Tango mode, and you have to manually switch between them) - that is, without using OptLink directly, which is very problematic in itself (the interface between DMD and OptLink is ill-defined - library deps change, etc, etc.). -- |
February 20, 2007 Re: [Issue 987] New: Add DMD compiler switch to prevent automatic linking to phobos.lib/libphobos.a | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | For what it's worth, I do think it makes sense for the compiler to implicitly link a library expected to contain its runtime code. In fact, Tango was even designed to support this configuration. It isn't the default simply because it adds complexity but only benefits a small portion of the community. The need for users to switch between configurations is a valid concern however, so I can't say I disagree with this request. If nothing else, it would occasionally be useful to link a debug vs. a release version of the compiler runtime without replacing the library file itself. |
September 12, 2007 [Issue 987] Add DMD compiler switch to prevent automatic linking to phobos.lib/libphobos.a | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=987 ------- Comment #2 from davidl@126.com 2007-09-12 07:52 ------- From the spec, it's fixed in 1.021 -- |
September 12, 2007 [Issue 987] Add DMD compiler switch to prevent automatic linking to phobos.lib/libphobos.a | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=987 davidl@126.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- |
September 12, 2007 [Issue 987] Add DMD compiler switch to prevent automatic linking to phobos.lib/libphobos.a | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=987 davidl@126.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sean@f4.ca ------- Comment #3 from davidl@126.com 2007-09-12 07:54 ------- *** Bug 1445 has been marked as a duplicate of this bug. *** -- |
Copyright © 1999-2021 by the D Language Foundation