summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2014-10-17 16:51:34 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2014-10-17 16:51:34 -0400
commitcdd2b02d3f9f808bb94903e8bba0efedba680226 (patch)
tree534e5ae918e69767bbc72a3fe778aec81ff895c9 /SConstruct
parent43d621a97715c40a48ef7bbab3e28f6665c034f3 (diff)
downloadmongo-cdd2b02d3f9f808bb94903e8bba0efedba680226.tar.gz
Change linked CRT default.
Statically linked CRT is now the default. Dynamically linked CRT is an option.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 3ec0ac80b2b..c8b94d31469 100644
--- a/SConstruct
+++ b/SConstruct
@@ -21,6 +21,9 @@ AddOption("--enable-snappy", dest="snappy", type="string", nargs=1, action="stor
AddOption("--enable-swig", dest="swig", type="string", nargs=1, action="store",
help="Build python extension, specify location of swig.exe binary")
+AddOption("--dynamic-crt", dest="dynamic-crt", action="store_true", default=False,
+ help="Link with the MSVCRT DLL version")
+
env = Environment(
CPPPATH = ["#/src/include/",
"#/build_win",
@@ -46,7 +49,7 @@ env = Environment(
"/Gy", # separate functions for linker
"/Zc:wchar_t",
"/Gd",
- "/MD",
+ "/MD" if GetOption("dynamic-crt") else "/MT",
],
LINKFLAGS = [
"/DEBUG", # Generate debug symbols