summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2021-05-07 14:45:51 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-09 16:07:52 +0000
commit925e0ea2b6ea9d4377d0be9f6305a74b69d580eb (patch)
tree39a6f82f88e7d4da841035222b05b1ca921c7e30
parent64aad906c80cb2b80dd30cad4e721fdd4de7a854 (diff)
downloadmongo-925e0ea2b6ea9d4377d0be9f6305a74b69d580eb.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. (cherry picked from commit d740377ed7aa5bf944aa0750eb5a14379314f6c3)
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 6898453080f..62b5bb95d3f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -2514,7 +2514,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,