summaryrefslogtreecommitdiff
path: root/platform/windows/detect.py
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-01-10 17:17:10 +0100
committerGitHub <noreply@github.com>2017-01-10 17:17:10 +0100
commit6eeb994a7bbd3cb1500c42af8f3ac1227f323ce4 (patch)
treeb877789a4696e03e200bc132f14ffa901ac9e957 /platform/windows/detect.py
parentbf50b41defcbbcc4b45a05eb03a7c8bb9b5b8c34 (diff)
parent460f030b738eb055d915e246a61f7740fe14f57b (diff)
Merge pull request #7493 from neikeq/pr-mingw-bits
Detect bits when building with MinGW
Diffstat (limited to 'platform/windows/detect.py')
-rw-r--r--platform/windows/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 2262fae031..1f3c7a7654 100644
--- a/platform/windows/detect.py
+++ b/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'])