diff options
author | Andrew Morrow <acm@mongodb.com> | 2021-02-21 12:37:53 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-23 13:16:37 +0000 |
commit | 018f6d9f797a49fb5e78f3616fe4f4e9fae35f70 (patch) | |
tree | b57e362d98419af9155685c39e1cbe15cbb8d110 /SConstruct | |
parent | dd57a991923a3f93220407c74a43b71574b771be (diff) | |
download | mongo-018f6d9f797a49fb5e78f3616fe4f4e9fae35f70.tar.gz |
SERVER-55131 Add an experiment for enabling -ftree-vectorize when optimization is enabled
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 6898453080f..2aea0c8e965 100644 --- a/SConstruct +++ b/SConstruct @@ -274,6 +274,7 @@ add_option('opt', experimental_optimizations = [ 'sandybridge', + 'treevec', ] experimental_optimization_choices = ['*'] experimental_optimization_choices.extend("+" + opt for opt in experimental_optimizations) @@ -2486,6 +2487,9 @@ if env.TargetOSIs('posix'): else: env.Append( CCFLAGS=["-O0"] ) + if optBuild and "treevec" in selected_experimental_optimizations: + env.Append(CCFLAGS=["-ftree-vectorize"]) + # Promote linker warnings into errors. We can't yet do this on OS X because its linker considers # noall_load obsolete and warns about it. if not has_option("disable-warnings-as-errors"): |