finish tool: untested improvements to the GCC detection logic
This commit is contained in:
parent
b20817c3fb
commit
5421ec8dae
1 changed files with 2 additions and 2 deletions
|
|
@ -90,9 +90,9 @@ when defined(windows):
|
|||
let arch = execProcess(gccExe, ["-dumpmachine"], nil, {poStdErrToStdOut,
|
||||
poUsePath})
|
||||
when hostCPU == "i386":
|
||||
result = arch.contains("i686-")
|
||||
result = arch.contains("i686-") and not arch.contains("w64")
|
||||
elif hostCPU == "amd64":
|
||||
result = arch.contains("x86_64-")
|
||||
result = arch.contains("x86_64-") or arch.contains("i686-w64-mingw32")
|
||||
else:
|
||||
{.error: "Unknown CPU for Windows.".}
|
||||
except OSError, IOError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue