Having trouble cross-compiling from linux to windows

ryuukk_ ryuukk.dev at gmail.com
Sat Jan 14 20:24:06 UTC 2023


If i remember correctly, you need to make sure you have

```
"x86_64-.*-windows-msvc":
{
     switches = [
         "-defaultlib=phobos2-ldc,druntime-ldc",
     ];
     lib-dirs = [
         "%%ldcbinarypath%%/../lib-win64",
     ];
};
```

in ``$LDC_PATH/etc/ldc2.conf ``


Here is how dscanner is doing it: 
https://github.com/dlang-community/D-Scanner/blob/master/setup-ldc-windows.sh

I wonder why they need to do all of that, it should work out of 
the box.. that's weird




More information about the digitalmars-d-ldc mailing list