diff options
author | samantharitter <samantha.ritter@10gen.com> | 2016-10-06 12:16:43 -0400 |
---|---|---|
committer | samantharitter <samantha.ritter@10gen.com> | 2016-10-07 10:11:16 -0400 |
commit | 956103c27c7f17b850e2cde2738a0eb1f46bcffb (patch) | |
tree | 45b488e18a5da3c9a034781f0e5bff8cf1a6b5b3 /SConstruct | |
parent | 448f5b43d249dd090da1d79b82c9ab1b742e4f38 (diff) | |
download | mongo-956103c27c7f17b850e2cde2738a0eb1f46bcffb.tar.gz |
SERVER-26338 Only load dependencyDb in scons on supported platforms
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/SConstruct b/SConstruct index fe3a339fcee..d4b09f2d087 100644 --- a/SConstruct +++ b/SConstruct @@ -2847,9 +2847,6 @@ env = doConfigure( env ) # compilation database entries for the configure tests, which is weird. env.Tool("compilation_db") -# Load the dagger tool for build dependency graph introspection -env.Tool("dagger") - def checkErrorCodes(): import buildscripts.errorcodes as x if x.checkErrorCodes() == False: @@ -2950,7 +2947,6 @@ def injectMongoIncludePaths(thisEnv): env.AddMethod(injectMongoIncludePaths, 'InjectMongoIncludePaths') compileDb = env.Alias("compiledb", env.CompilationDatabase('compile_commands.json')) -dependencyDb = env.Alias("dagger", env.Dagger('library_dependency_graph.json')) env.Alias("distsrc-tar", env.DistSrc("mongodb-src-${MONGO_VERSION}.tar")) env.Alias("distsrc-tgz", env.GZip( @@ -2964,8 +2960,14 @@ env.SConscript('src/SConscript', variant_dir='$BUILD_DIR', duplicate=False) all = env.Alias('all', ['core', 'tools', 'dbtest', 'unittests', 'integration_tests']) -# Require everything to be built before trying to extract build dependency information -env.Requires(dependencyDb, all) +# 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'): + env.Tool("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) # We don't want installing files to cause them to flow into the cache, # since presumably we can re-install them from the origin if needed. |