summaryrefslogtreecommitdiff
path: root/site_scons
diff options
context:
space:
mode:
authorMathew Robinson <mathew.robinson@mongodb.com>2019-12-03 16:23:53 +0000
committerevergreen <evergreen@mongodb.com>2019-12-03 16:23:53 +0000
commita3dc86799f20c3e7842f10e76d87698f1f1626bc (patch)
treed5c926addcf1f7e25ef010aafead3c11376be873 /site_scons
parent474b930341f98ed8ab68bd82be69e94516689a44 (diff)
downloadmongo-a3dc86799f20c3e7842f10e76d87698f1f1626bc.tar.gz
SERVER-44907 NINJA_SUFFIX should prepend a dot if one is not supplied
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_tools/ninja.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/site_scons/site_tools/ninja.py b/site_scons/site_tools/ninja.py
index 54e60383e74..6c342b1aa00 100644
--- a/site_scons/site_tools/ninja.py
+++ b/site_scons/site_tools/ninja.py
@@ -738,7 +738,11 @@ def ninja_builder(env, target, source):
ninja_syntax_mod_name = os.path.basename(ninja_syntax_file)
ninja_syntax = importlib.import_module(ninja_syntax_mod_name.replace(".py", ""))
- generated_build_ninja = target[0].get_abspath() + env.get("NINJA_SUFFIX", "")
+ suffix = env.get("NINJA_SUFFIX", "")
+ if suffix and not suffix[0] == ".":
+ suffix = "." + suffix
+
+ generated_build_ninja = target[0].get_abspath() + suffix
ninja_state = NinjaState(env, ninja_syntax.Writer)
for src in source: