diff options
author | Andrew Morrow <acm@mongodb.com> | 2021-02-21 12:47:05 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-23 13:16:37 +0000 |
commit | 7387505ddf0bab58c07ccb0c573ff7fdf5116f49 (patch) | |
tree | 8725bf48009abbdc95ce5a1d3b293ea03e3b3a51 /SConstruct | |
parent | 018f6d9f797a49fb5e78f3616fe4f4e9fae35f70 (diff) | |
download | mongo-7387505ddf0bab58c07ccb0c573ff7fdf5116f49.tar.gz |
SERVER-49323 Add experimental support for -fno-semantic-interposition
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 2aea0c8e965..287a34f0d49 100644 --- a/SConstruct +++ b/SConstruct @@ -273,6 +273,7 @@ add_option('opt', ) experimental_optimizations = [ + 'fnsi', 'sandybridge', 'treevec', ] @@ -3636,6 +3637,9 @@ def doConfigure(myenv): myenv, f"-Wl,--{compress_flag}=none") + if "fnsi" in selected_experimental_optimizations: + AddToCCFLAGSIfSupported(myenv, "-fno-semantic-interposition") + # Avoid deduping symbols on OS X debug builds, as it takes a long time. if not optBuild and myenv.ToolchainIs('clang') and env.TargetOSIs('darwin'): AddToLINKFLAGSIfSupported(myenv, "-Wl,-no_deduplicate") @@ -4351,7 +4355,10 @@ def doConfigure(myenv): elif usdt_provider: conf.env.SetConfigHeaderDefine("MONGO_CONFIG_USDT_ENABLED") conf.env.SetConfigHeaderDefine("MONGO_CONFIG_USDT_PROVIDER", usdt_provider) - return conf.Finish() + myenv = conf.Finish() + + return myenv + env = doConfigure( env ) |