Bug 1549 – Any chance we'll see a "-version=Phobos" in dmd.conf/sc.ini?
Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2007-10-07T14:51:00Z
Last change time
2015-06-09T05:14:56Z
Assigned to
nobody
Creator
anders1
Comments
Comment #0 by anders1 — 2007-10-07T14:51:38Z
Supporting both Phobos and Tango (and other possible libraries) would be easier if Phobos used -version=Phobos, like Tango does in its dmd.conf.
Currently the workaround is to simply do something like this, which works but is not ideal:
version(Tango)
{ do stuff }
else {
// phobos
}
It's a quite simple addition and wouldn't break anything, so I'd recommend that it goes into dmd 1.x as well as 2.x.
Anders
Comment #1 by rburners — 2014-07-07T21:49:38Z
D1 being in maintenance mode makes this very unlikely.