finish.nim: yet another GCC detection problem fixed

This commit is contained in:
Araq
2017-01-29 01:13:37 +01:00
parent 76eb20d2d3
commit 5d79a1fc5b

View File

@@ -88,9 +88,10 @@ when defined(windows):
if fileExists(gccExe):
try:
let arch = execProcess(gccExe, ["-dumpmachine"], nil, {poStdErrToStdOut,
poUsePath})
poUsePath}).strip
when hostCPU == "i386":
result = arch.contains("i686-") and not arch.contains("w64")
result = (arch.contains("i686-") and not arch.contains("w64")) or
arch == "mingw32"
elif hostCPU == "amd64":
result = arch.contains("x86_64-") or arch.contains("i686-w64-mingw32")
else: