diff options
author | Andrew Morrow <acm@mongodb.com> | 2021-02-24 13:09:47 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-23 13:16:37 +0000 |
commit | b9a8bf6565187ea582c189a374352446b44b684a (patch) | |
tree | c017f9972b5ff8bed6086fde10f3e2e3acfad086 /SConstruct | |
parent | 7387505ddf0bab58c07ccb0c573ff7fdf5116f49 (diff) | |
download | mongo-b9a8bf6565187ea582c189a374352446b44b684a.tar.gz |
SERVER-55132 Add an experiment for allowing __builtin_memcmp
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 287a34f0d49..a196b21b3ae 100644 --- a/SConstruct +++ b/SConstruct @@ -273,6 +273,7 @@ add_option('opt', ) experimental_optimizations = [ + 'builtin-memcmp', 'fnsi', 'sandybridge', 'treevec', @@ -3708,7 +3709,7 @@ def doConfigure(myenv): myenv = conf.Finish() # We set this to work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052 - if not myenv.ToolchainIs('msvc'): + if not myenv.ToolchainIs('msvc') and not 'builtin-memcmp' in selected_experimental_optimizations: AddToCCFLAGSIfSupported(myenv, "-fno-builtin-memcmp") # pthread_setname_np was added in GLIBC 2.12, and Solaris 11.3 |