diff options
author | Araq <rumpf_a@web.de> | 2017-01-29 01:13:37 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-01-30 09:43:32 +0100 |
commit | 5d79a1fc5b8135c7b69f802ba7d6954519d7de39 (patch) | |
tree | d66c070844db87b9c3b11ef1869dbd37ab3ba1c1 /tools | |
parent | 76eb20d2d3533588fcce6aa3e121f63d0ef87eea (diff) | |
download | Nim-5d79a1fc5b8135c7b69f802ba7d6954519d7de39.tar.gz |
finish.nim: yet another GCC detection problem fixed
Diffstat (limited to 'tools')
-rw-r--r-- | tools/finish.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/finish.nim b/tools/finish.nim index 00bc2458c..eba6ec0d9 100644 --- a/tools/finish.nim +++ b/tools/finish.nim @@ -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: |