0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-55131 Add an experiment for enabling -ftree-vectorize when optimization is enabled

This commit is contained in:
Andrew Morrow 2021-02-21 12:37:53 -05:00 committed by Evergreen Agent
parent dd57a99192
commit 018f6d9f79

View File

@ -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"):