summaryrefslogtreecommitdiff
path: root/SConscript.buildinfo
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@gmail.com>2013-01-02 16:42:30 -0500
committerScott Hernandez <scotthernandez@gmail.com>2013-01-02 18:09:31 -0500
commit3e309515a71cbece88fa22120ff264ee34d18407 (patch)
tree9ec02d315679c9453fc3abe83c9217a0d977e6d9 /SConscript.buildinfo
parented4025a96991b95bb61ac7f6aa109bbe8be3c545 (diff)
downloadmongo-3e309515a71cbece88fa22120ff264ee34d18407.tar.gz
SERVER-7856: use python buildscript var, not cmd line opts
Diffstat (limited to 'SConscript.buildinfo')
-rw-r--r--SConscript.buildinfo11
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',