Bug 12126 – DMD needs option to select CRT flavour

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2014-02-09T21:11:05Z
Last change time
2018-05-06T18:35:52Z
Assigned to
No Owner
Creator
Manu

Comments

Comment #0 by turkeyman — 2014-02-09T21:11:05Z
Windows objects usually contain a reference to a particular flavour of the CRT it wants to link against, and it seems objects produced by DMD are no exception. Currently, DMD has no option to select which CRT reference to embed, and this makes for lots of problems in complex linkage environments. DMD should have options added to match the MSC options /MT /MD /MTd /MDd, and insert the appropriate CRT reference accordingly. The default is probably okay, but I suggest that /MTd should be selected by default when building -debug, since other C code built with /MTd is currently incompatible.