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

Detect bits when building with MinGW
This commit is contained in:
Rémi Verschelde 2017-01-10 17:17:10 +01:00 committed by GitHub
commit 6eeb994a7b

View File

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