Skip to content

Commit 7cc03b4

Browse files
authored
Fix #10717, fix #13284 (#13307)
1 parent e70294d commit 7cc03b4

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

config/nim.cfg

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,28 @@ path="$lib/pure"
8585

8686
@if unix and mingw:
8787
# Cross compile for Windows from Linux/OSX using MinGW
88-
os = windows
89-
90-
i386.windows.gcc.path = "/usr/bin"
9188
i386.windows.gcc.exe = "i686-w64-mingw32-gcc"
9289
i386.windows.gcc.linkerexe = "i686-w64-mingw32-gcc"
90+
i386.windows.gcc.cpp.exe = "i686-w64-mingw32-g++"
91+
i386.windows.gcc.cpp.linkerexe = "i686-w64-mingw32-g++"
9392

94-
amd64.windows.gcc.path = "/usr/bin"
9593
amd64.windows.gcc.exe = "x86_64-w64-mingw32-gcc"
9694
amd64.windows.gcc.linkerexe = "x86_64-w64-mingw32-gcc"
95+
amd64.windows.gcc.cpp.exe = "x86_64-w64-mingw32-g++"
96+
amd64.windows.gcc.cpp.linkerexe = "x86_64-w64-mingw32-g++"
97+
98+
@if macosx:
99+
i386.windows.gcc.path = "/usr/local/bin"
100+
amd64.windows.gcc.path = "/usr/local/bin"
101+
@else:
102+
i386.windows.gcc.path = "/usr/bin"
103+
amd64.windows.gcc.path = "/usr/bin"
104+
@end
105+
106+
os = windows
107+
108+
gcc.options.linker = ""
109+
gcc.cpp.options.linker = ""
97110
@end
98111

99112
@if unix:

0 commit comments

Comments
 (0)