summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2021-11-25 14:28:19 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-16 20:04:17 +0000
commit591b135f293603fad5e3bd1bc42e73fdb7ba68b7 (patch)
tree72c86720b9f63649cbe0157e067bc1c26c364935 /SConstruct
parent334f18f70fa51f95863434cc23d095a91492c8c4 (diff)
downloadmongo-591b135f293603fad5e3bd1bc42e73fdb7ba68b7.tar.gz
SERVER-61743 Don't apply -fno-builtin-memcmp on non-x86 platforms
(cherry picked from commit bc6a66d1d4f2bf2dfe8603de792c567ee0db830c) (cherry picked from commit e459b7ee056d5f634787d74718d6e23c6b1e6eb5) (cherry picked from commit f4971c2c477491a354b32cea160a056628387a9b) (cherry picked from commit 6b0aa52bef51b2a48909269f1b2e71015b3e83e7)
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 4 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 257a7c49371..c03361066b2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -2887,9 +2887,10 @@ 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'):
- AddToCCFLAGSIfSupported(myenv, "-fno-builtin-memcmp")
+ # We set this with GCC on x86 platforms to work around
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
+ if myenv.ToolchainIs('gcc') and (env['TARGET_ARCH'] in ['i386', 'x86_64']):
+ AddToCCFLAGSIfSupported(myenv, '-fno-builtin-memcmp')
def CheckThreadLocal(context):
test_body = """