diff options
author | Tausif Rahman <62212154+trahman1318@users.noreply.github.com> | 2022-05-11 12:25:14 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-11 13:10:18 +0000 |
commit | 3006c91474164db5b5d350030ef289e766440b0f (patch) | |
tree | e6f2b55aa90812b15f4a559a7241a4cb620b5dbe /SConstruct | |
parent | 6e672225c74eb32b42bc2bdbc50d14c77234f9dd (diff) | |
download | mongo-3006c91474164db5b5d350030ef289e766440b0f.tar.gz |
SERVER-54107 compile_commands.json should have an order-only dependency on generated-sources
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
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) |