diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2013-01-02 16:42:30 -0500 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2013-01-02 18:09:31 -0500 |
commit | 3e309515a71cbece88fa22120ff264ee34d18407 (patch) | |
tree | 9ec02d315679c9453fc3abe83c9217a0d977e6d9 /SConscript.buildinfo | |
parent | ed4025a96991b95bb61ac7f6aa109bbe8be3c545 (diff) | |
download | mongo-3e309515a71cbece88fa22120ff264ee34d18407.tar.gz |
SERVER-7856: use python buildscript var, not cmd line opts
Diffstat (limited to 'SConscript.buildinfo')
-rw-r--r-- | SConscript.buildinfo | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/SConscript.buildinfo b/SConscript.buildinfo index 0993a598bf9..ad80c3ea388 100644 --- a/SConscript.buildinfo +++ b/SConscript.buildinfo @@ -8,7 +8,7 @@ import sys import buildscripts.utils -Import('env windows') +Import('env windows usev8 usesm') def getSysInfo(): if windows: @@ -39,8 +39,15 @@ def generate_buildinfo(env, target, source, **kw): if len(env["MONGO_MODULES"]): git_version += " modules: " + ", ".join(env["MONGO_MODULES"]) + if usev8: + js_engine = "V8" + elif usesm: + js_engine = "SpiderMonkey" + else: + js_engine = "Unknown" + contents = str(source[0]) % dict(git_version=git_version, - js_engine="V8" if GetOption('usev8') else "SpiderMonkey", + js_engine=js_engine, sys_info=getSysInfo(), allocator=GetOption('allocator'), loader_flags=env.subst('$LINKFLAGS $LDFLAGS', |