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