diff options
author | Tad Marshall <tad@10gen.com> | 2012-08-04 20:17:11 -0400 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2012-08-05 14:17:49 -0400 |
commit | c9eb7c87a391e3acf9c0e73e2619cdf8f87b6ab6 (patch) | |
tree | 3deb70a5f281186a371f5d8f575cb07d7d39aee9 /SConstruct | |
parent | 0ff6b7aeb373c82d70cd5a34ce1c2d85f4a725cb (diff) | |
download | mongo-c9eb7c87a391e3acf9c0e73e2619cdf8f87b6ab6.tar.gz |
SERVER-6713 use /LARGEADDRESSAWARE linker switch in Windows
Add /LARGEADDRESSAWARE linker switch to Windows builds to
double the user address space in 32-bit builds.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 2e061b7d46c..d02cece1b50 100644 --- a/SConstruct +++ b/SConstruct @@ -626,6 +626,9 @@ elif "win32" == os.sys.platform: #env.Append( CPPDEFINES=[ "_DEBUG" ] ) # This means --dd is always on unless you say --release + # This gives 32-bit programs 4 GB of user address space in WOW64, ignored in 64-bit builds + env.Append( LINKFLAGS=" /LARGEADDRESSAWARE " ) + if force64: env.Append( EXTRALIBPATH=[ winSDKHome + "/Lib/x64" ] ) else: |