https://issues.dlang.org/show_bug.cgi?id=23256
Issue ID: 23256
Summary: must supply -mscrtlib manually when compiling for
Windows
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
When compiling a file:
void func() { }
on a non-Windows system, and cross compiling it to Windows with:
dmd -c test.d -os=windows
it fails with the message:
Error: must supply `-mscrtlib` manually when cross compiling to windows
But mscrtlib is only necessary when trying to link a windows object file, not
just create it.
--