diff options
author | Andrew Morrow <acm@mongodb.com> | 2021-05-07 14:45:51 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-09 14:41:12 +0000 |
commit | d740377ed7aa5bf944aa0750eb5a14379314f6c3 (patch) | |
tree | 4edf540d7e387967ed5b5b1016ef4c219cfd6f2b /SConstruct | |
parent | ca1a1e10e25f6e824e23317606da304c185bf259 (diff) | |
download | mongo-d740377ed7aa5bf944aa0750eb5a14379314f6c3.tar.gz |
SERVER-56728 Don't enable sandybridge optimizations for macOS
Doing so allows AVX instructions, but those aren't supported on
Rosetta 2. We can restore this one we have native Apple Silicon
builds.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 540b41ae0fe..14c1393190c 100644 --- a/SConstruct +++ b/SConstruct @@ -2670,7 +2670,7 @@ if get_option('ocsp-stapling') == 'on': env.SetConfigHeaderDefine("MONGO_CONFIG_OCSP_STAPLING_ENABLED") -if not env.TargetOSIs('windows') and (env.ToolchainIs('GCC', 'clang')): +if not env.TargetOSIs('windows', 'macOS') and (env.ToolchainIs('GCC', 'clang')): # By default, apply our current microarchitecture minima. If the # user has customized a flag of the same name in any of CCFLAGS, |