소스 검색

Detect bits when building with MinGW

(cherry picked from commit 460f030b738eb055d915e246a61f7740fe14f57b)
Ignacio Etcheverry 8 년 전
부모
커밋
8a5596322d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      platform/windows/detect.py

+ 1 - 1
platform/windows/detect.py

@@ -306,7 +306,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'])