summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tools/finish.nim5
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: