Make Windows cross-compilation simpler (#9485)

This commit is contained in:
genotrance 2018-10-24 06:12:08 -05:00 • committed by Andreas Rumpf
commit 8500076651
2 changed files with 28 additions and 0 deletions

View file

@ -73,6 +73,19 @@ path="$lib/pure"
opt:speed
@end
@if unix and mingw:
# Cross compile for Windows from Linux/OSX using MinGW
os = windows
i386.windows.gcc.path = "/usr/bin"
i386.windows.gcc.exe = "i686-w64-mingw32-gcc"
i386.windows.gcc.linkerexe = "i686-w64-mingw32-gcc"
amd64.windows.gcc.path = "/usr/bin"
amd64.windows.gcc.exe = "x86_64-w64-mingw32-gcc"
amd64.windows.gcc.linkerexe = "x86_64-w64-mingw32-gcc"
@end
@if unix:
@if not bsd or haiku:
# -fopenmp