diff options
author | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2019-03-19 15:53:29 -0400 |
---|---|---|
committer | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2019-04-15 17:37:30 -0400 |
commit | b5c774f90e2683147659a0e4df5f1a8fc0dad79a (patch) | |
tree | c917c3926434fc672735afc9b4a7d609757d70c1 /src/third_party/SConscript | |
parent | 4557a6468bc8bfc28833eb7fcde04ee039e804b4 (diff) | |
download | mongo-b5c774f90e2683147659a0e4df5f1a8fc0dad79a.tar.gz |
SERVER-39894 Add support for AWS credentials in the shell
Diffstat (limited to 'src/third_party/SConscript')
-rw-r--r-- | src/third_party/SConscript | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/third_party/SConscript b/src/third_party/SConscript index 3330b1ca995..c129f6765ec 100644 --- a/src/third_party/SConscript +++ b/src/third_party/SConscript @@ -32,6 +32,44 @@ thirdPartyEnvironmentModifications = { } } +def injectMozJS(thisEnv): + thisEnv.InjectThirdParty(libraries=['mozjs']) + + if thisEnv.TargetOSIs('windows'): + thisEnv.Append( + CCFLAGS=[ + '/FI', 'js-config.h', + '/FI', 'js/RequiredDefines.h', + ], + CPPDEFINES=[ + '_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING', + ] + ) + else: + thisEnv.Append( + CCFLAGS=[ + '-include', 'js-config.h', + '-include', 'js/RequiredDefines.h', + '-Wno-invalid-offsetof', + ], + CXXFLAGS=[ + '-Wno-non-virtual-dtor', + ], + ) + + thisEnv.Prepend(CPPDEFINES=[ + 'JS_USE_CUSTOM_ALLOCATOR', + 'STATIC_JS_API=1', + ]) + + if get_option('spider-monkey-dbg') == "on": + thisEnv.Prepend(CPPDEFINES=[ + 'DEBUG', + 'JS_DEBUG', + ]) + +env.AddMethod(injectMozJS, 'InjectMozJS'); + if not use_system_version_of_library('tcmalloc'): # GPerftools does this slightly differently than the others. thirdPartyEnvironmentModifications['gperftools'] = {} |