diff options
author | Juan Gu <juan.gu@mongodb.com> | 2022-10-26 22:39:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-27 00:08:01 +0000 |
commit | 3a31638a3c0bc80fe03faf0bafba5aefaefc2b84 (patch) | |
tree | 205f400f9cfe015b44ed1af2ba122e366361c7ef /site_scons | |
parent | 505e87f2cfb5a26f86fdc0a4fe35aff199808334 (diff) | |
download | mongo-3a31638a3c0bc80fe03faf0bafba5aefaefc2b84.tar.gz |
SERVER-67681 Create specific target for compile commands
Diffstat (limited to 'site_scons')
-rw-r--r-- | site_scons/mongo/build_profiles.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/site_scons/mongo/build_profiles.py b/site_scons/mongo/build_profiles.py index a68165c6e09..96528c2b469 100644 --- a/site_scons/mongo/build_profiles.py +++ b/site_scons/mongo/build_profiles.py @@ -17,6 +17,7 @@ class BuildProfile: CCACHE: Optional[str] NINJA_PREFIX: str VARIANT_DIR: Any + disable_warnings_as_errors: Optional[List] BUILD_PROFILES = { @@ -34,6 +35,7 @@ BUILD_PROFILES = { CCACHE=None, NINJA_PREFIX="build", VARIANT_DIR=mongo_generators.default_variant_dir_generator, + disable_warnings_as_errors=[], ), # This build has fast runtime speed & fast build time at the cost of debuggability. "fast": @@ -52,6 +54,7 @@ BUILD_PROFILES = { CCACHE="ccache", NINJA_PREFIX="fast", VARIANT_DIR="fast", + disable_warnings_as_errors=[], ), # This build has fast runtime speed & debuggability at the cost of build time. "opt": @@ -70,6 +73,7 @@ BUILD_PROFILES = { CCACHE="ccache", NINJA_PREFIX="opt", VARIANT_DIR="opt", + disable_warnings_as_errors=[], ), # This build leverages santizers & is the suggested build profile to use for development. "san": @@ -88,6 +92,7 @@ BUILD_PROFILES = { CCACHE="ccache", NINJA_PREFIX="san", VARIANT_DIR="san", + disable_warnings_as_errors=[], ), #These options are the preferred settings for compiledb to generating compile_commands.json @@ -107,5 +112,6 @@ BUILD_PROFILES = { CCACHE=None, NINJA_PREFIX="build", VARIANT_DIR=mongo_generators.default_variant_dir_generator, + disable_warnings_as_errors=['source'], ), } |