summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2014-05-09 18:23:29 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2014-05-09 18:23:49 -0400
commit773e718f9bd3097faf695a5faebb24f70e3022de (patch)
tree728a57a57606469d05caa5c83579934d77a4e6a4 /SConstruct
parentd19801d6209d6635e4fb9c42245723f1f1869bf0 (diff)
downloadmongo-773e718f9bd3097faf695a5faebb24f70e3022de.tar.gz
SERVER-13892: Compiler Fixes
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 5c7c664bd5e..346866b805c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -730,6 +730,13 @@ elif windows:
env.Append(CCFLAGS=[winRuntimeLibMap[(dynamicCRT, debugBuild)]])
+ # With VS 2012 and later we need to specify 5.01 as the target console
+ # so that our 32-bit builds run on Windows XP
+ # See https://software.intel.com/en-us/articles/linking-applications-using-visual-studio-2012-to-run-on-windows-xp
+ #
+ if msarch == "x86":
+ env.Append( LINKFLAGS=["/SUBSYSTEM:CONSOLE,5.01"])
+
if optBuild:
# /O2: optimize for speed (as opposed to size)
# /Oy-: disable frame pointer optimization (overrides /O2, only affects 32-bit)