summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorTausif Rahman <62212154+trahman1318@users.noreply.github.com>2022-05-11 12:25:14 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-11 13:10:18 +0000
commit3006c91474164db5b5d350030ef289e766440b0f (patch)
treee6f2b55aa90812b15f4a559a7241a4cb620b5dbe /SConstruct
parent6e672225c74eb32b42bc2bdbc50d14c77234f9dd (diff)
downloadmongo-3006c91474164db5b5d350030ef289e766440b0f.tar.gz
SERVER-54107 compile_commands.json should have an order-only dependency on generated-sources
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 8cb6eafa7d0..5291c9521e6 100644
--- a/SConstruct
+++ b/SConstruct
@@ -5354,6 +5354,9 @@ env.AddMethod(injectModule, 'InjectModule')
if get_option('ninja') == 'disabled':
compileCommands = env.CompilationDatabase('compile_commands.json')
+ # Initialize generated-sources Alias as a placeholder so that it can be used as a
+ # dependency for compileCommands. This Alias will be properly updated in other SConscripts.
+ env.Requires(compileCommands, env.Alias("generated-sources"))
compileDb = env.Alias("compiledb", compileCommands)