Bug 23092 – Cannot cross-compile from Posix to Windows

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-05-05T13:39:23Z
Last change time
2024-12-13T19:22:38Z
Assigned to
No Owner
Creator
kinke
Moved to GitHub: dmd#20098 →

Comments

Comment #0 by kinke — 2022-05-05T13:39:23Z
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.
Comment #1 by robert.schadek — 2024-12-13T19:22:38Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20098 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB