diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 872df2e2c76..5be310b0aa1 100644 --- a/SConstruct +++ b/SConstruct @@ -1978,6 +1978,10 @@ def doConfigure(myenv): env = doConfigure( env ) +# Load the compilation_db tool. We want to do this after configure so we don't end up with +# compilation database entries for the configure tests, which is weird. +env.Tool("compilation_db") + env['PDB'] = '${TARGET.base}.pdb' def checkErrorCodes(): @@ -2174,6 +2178,8 @@ def injectMongoIncludePaths(thisEnv): thisEnv.AppendUnique(CPPPATH=['$BUILD_DIR']) env.AddMethod(injectMongoIncludePaths, 'InjectMongoIncludePaths') +env.Alias("compiledb", env.CompilationDatabase('compile_commands.json')) + env.SConscript('src/SConscript', variant_dir='$BUILD_DIR', duplicate=False) env.SConscript('SConscript.smoke') |