finish.nim: yet another GCC detection problem fixed
This commit is contained in:
parent
76eb20d2d3
commit
5d79a1fc5b
1 changed files with 3 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue