From 5d79a1fc5b8135c7b69f802ba7d6954519d7de39 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 29 Jan 2017 01:13:37 +0100 Subject: [PATCH] finish.nim: yet another GCC detection problem fixed --- tools/finish.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/finish.nim b/tools/finish.nim index 00bc2458ce..eba6ec0d95 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: