summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2020-06-29 18:44:25 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-06 04:15:02 +0000
commitfa7f6842d53431ef679a587ba20b62cbe49d871c (patch)
treebc6b38e189a95c4b5adc0070740c53c7eeb341e0 /SConstruct
parent344d765b59512c4dd5defa135044e3617162a17c (diff)
downloadmongo-fa7f6842d53431ef679a587ba20b62cbe49d871c.tar.gz
SERVER-49036 expand response files for generating the compdb from ninja
(cherry picked from commit 5fe923a0aa312044062df044eb4eaa47951f70ec)
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index cfe8744457c..ac484763558 100644
--- a/SConstruct
+++ b/SConstruct
@@ -3898,6 +3898,13 @@ if get_option('ninja') != 'disabled':
else:
ninja_builder = Tool("ninja_next")
ninja_builder.generate(env)
+
+ ninjaConf = Configure(env, help=False, custom_tests = {
+ 'CheckNinjaCompdbExpand': env.CheckNinjaCompdbExpand,
+ })
+ env['NINJA_COMPDB_EXPAND'] = ninjaConf.CheckNinjaCompdbExpand()
+ ninjaConf.Finish()
+
# idlc.py has the ability to print it's implicit dependencies
# while generating, Ninja can consume these prints using the