summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorTausif Rahman <tausif.rahman@mongodb.com>2022-04-27 19:19:14 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-27 19:49:04 +0000
commit4e79ecabfa57623648688e5d602dae16e3f4a72c (patch)
treedf9431dd33dcfa0300f5fbb2d13d5e61d2a5c2c3 /SConstruct
parentc6db2e961c4e0a65a606896c4a38f8fe1548cf45 (diff)
downloadmongo-4e79ecabfa57623648688e5d602dae16e3f4a72c.tar.gz
SERVER-54107 compile_commands.json should have an order-only dependency on generated-sources
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 8cb6eafa7d0..4b6e002b4eb 100644
--- a/SConstruct
+++ b/SConstruct
@@ -5354,7 +5354,10 @@ env.AddMethod(injectModule, 'InjectModule')
if get_option('ninja') == 'disabled':
compileCommands = env.CompilationDatabase('compile_commands.json')
- compileDb = env.Alias("compiledb", compileCommands)
+ # Initialize generated-sources Alias as a placeholder so that it can be used as a
+ # dependency for compiledb. This Alias will be properly updated in other SConscripts.
+ generatedSources = env.Alias("generated-sources")
+ compileDb = env.Alias("compiledb", [compileCommands, generatedSources])
msvc_version = ""