瀏覽代碼

Merge pull request #7493 from neikeq/pr-mingw-bits

Detect bits when building with MinGW
Rémi Verschelde 8 年之前
父節點
當前提交
6eeb994a7b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/windows/detect.py

+ 1 - 1
platform/windows/detect.py

@@ -319,7 +319,7 @@ def configure(env):
         mingw_prefix = ""
 
         if (env["bits"] == "default"):
-            env["bits"] = "32"
+            env["bits"] = "64" if "PROGRAMFILES(X86)" in os.environ else "32"
 
         if (env["bits"] == "32"):
             env.Append(LINKFLAGS=['-static'])