summaryrefslogtreecommitdiff
path: root/platform/windows/detect.py
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-05-03 16:29:32 -0300
committerGeorge Marques <george@gmarqu.es>2016-05-03 16:35:36 -0300
commit9424c6c58f0b33f06807936958978e907574a845 (patch)
tree1fa02b1f67a0a62a235d53053e054ae16b71c851 /platform/windows/detect.py
parent5b039245b9d95c8ca1914d41d976e9a52e5510ef (diff)
Fix windows 64-bits build.
The change in `tools/doc/doc_data.cpp` is needed because the MSVC compiler does not support variable length arrays. Fix #4113
Diffstat (limited to 'platform/windows/detect.py')
-rw-r--r--platform/windows/detect.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index d01a5a114d..56e8a5d45d 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -289,6 +289,8 @@ def configure(env):
print "Compiled program architecture will be a 32 bit executable. (forcing bits=32)."
else:
print "Failed to detect MSVC compiler architecture version... Defaulting to 32bit executable settings (forcing bits=32). Compilation attempt will continue, but SCons can not detect for what architecture this build is compiled for. You should check your settings/compilation setup."
+ if env["bits"]=="64":
+ env.Append(CCFLAGS=['/D_WIN64'])
else:
# Workaround for MinGW. See: