Cross Compiling With LDC Under Single OS
kinke
noone at nowhere.com
Fri Dec 18 13:40:09 UTC 2020
On Friday, 18 December 2020 at 11:00:01 UTC, Elina Küçükay wrote:
> but this exe file doesn't work in Windows
I meant more specifics wrt. this - what's the error? Not a PE
executable? Some missing DLL because a Visual C++ runtime 2015+
isn't installed?
> ldc -mtriple = x86_64-windows-msvc -c foo.d -of = foo.exe
The Wiki uses `ldc2 -mtriple=x86_64-windows-msvc foo.d`. `-c`
means 'compile only', so you're effectively compiling a COFF
object file and naming it `foo.exe`, so no, that won't work.
> Does LDC support platform independent compilation for D
> language?
Yes, the Wiki page isn't made up. ;)
More information about the Digitalmars-d
mailing list