May 05, 2022 [Issue 23092] New: Cannot cross-compile from Posix to Windows | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23092 Issue ID: 23092 Summary: Cannot cross-compile from Posix to Windows Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: kinke@gmx.net Using v2.100.0-rc.1 on Linux: $ dmd -c bla.d -target=x86_64-pc-windows-msvc Error: `-fPIC` and `-fPIE` cannot be used when targetting windows Error: must supply `-mscrtlib` manually when cross compiling to windows I assume the `-fPIC` comes from the default config file. I'm explicitly compiling only with -c, not linking, so having to specify -mscrtlib makes little sense to me. -- |
Copyright © 1999-2021 by the D Language Foundation