summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
Diffstat (limited to 'platform')
-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: