From 5678e6188e7d3a6401b4bdc6aa3b46db949f2235 Mon Sep 17 00:00:00 2001 From: Juan Gu Date: Tue, 25 Oct 2022 15:57:56 +0000 Subject: SERVER-67681 Create specific target for compile commands --- site_scons/mongo/build_profiles.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'site_scons') diff --git a/site_scons/mongo/build_profiles.py b/site_scons/mongo/build_profiles.py index e32163a61b4..a68165c6e09 100644 --- a/site_scons/mongo/build_profiles.py +++ b/site_scons/mongo/build_profiles.py @@ -89,4 +89,23 @@ BUILD_PROFILES = { NINJA_PREFIX="san", VARIANT_DIR="san", ), + + #These options are the preferred settings for compiledb to generating compile_commands.json + "compiledb": + BuildProfile( + ninja="disabled", + variables_files=[ + './etc/scons/mongodbtoolchain_stable_clang.vars', + './etc/scons/developer_versions.vars', + ], + allocator="auto", + sanitize=None, + link_model="dynamic", + dbg="on", + opt="off", + ICECC=None, + CCACHE=None, + NINJA_PREFIX="build", + VARIANT_DIR=mongo_generators.default_variant_dir_generator, + ), } -- cgit v1.2.1