diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2017-02-28 11:38:27 -0500 |
---|---|---|
committer | Gabriel Russell <gabriel.russell@mongodb.com> | 2017-03-02 10:11:41 -0500 |
commit | 4a61e8533c00f991106f44eb7154b78060234c9c (patch) | |
tree | 4aa2c593dd4678f0e825c512484ecde5a57cc7d1 /SConstruct | |
parent | aa8987a0d92c06c900579c5d38e814cd0647a2d5 (diff) | |
download | mongo-4a61e8533c00f991106f44eb7154b78060234c9c.tar.gz |
SERVER-28131 don't load dagger tool unless needed
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index f61e1f780ed..01fddb0fa4b 100644 --- a/SConstruct +++ b/SConstruct @@ -2956,7 +2956,9 @@ env.Tool("compilation_db") # If we can, load the dagger tool for build dependency graph introspection. # Dagger is only supported on Linux and OSX (not Windows or Solaris). -if is_running_os('osx') or is_running_os('linux'): +should_dagger = ( is_running_os('osx') or is_running_os('linux') ) and "dagger" in COMMAND_LINE_TARGETS + +if should_dagger: env.Tool("dagger") def checkErrorCodes(): @@ -3106,7 +3108,7 @@ env.SConscript( all = env.Alias('all', ['core', 'tools', 'dbtest', 'unittests', 'integration_tests']) # run the Dagger tool if it's installed -if is_running_os('osx') or is_running_os('linux'): +if should_dagger: dependencyDb = env.Alias("dagger", env.Dagger('library_dependency_graph.json')) # Require everything to be built before trying to extract build dependency information env.Requires(dependencyDb, all) |