diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-01-16 14:10:04 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-01-16 14:10:04 -0500 |
commit | f971dee540b9c9f7d6a92e278900e8bb00014f92 (patch) | |
tree | bc378e061ffb14624274756d56b38c0265445267 /src/third_party/wiredtiger/SConscript | |
parent | 8f4e5f800169e7825bbcde376904a8b65aa52e27 (diff) | |
download | mongo-f971dee540b9c9f7d6a92e278900e8bb00014f92.tar.gz |
SERVER-32649 WiredTiger fails on non-x64 builds of new GCC
Diffstat (limited to 'src/third_party/wiredtiger/SConscript')
-rw-r--r-- | src/third_party/wiredtiger/SConscript | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/SConscript b/src/third_party/wiredtiger/SConscript index 1e07852979b..4e1335499fd 100644 --- a/src/third_party/wiredtiger/SConscript +++ b/src/third_party/wiredtiger/SConscript @@ -36,7 +36,8 @@ if conf.CheckFunc("sync_file_range"): "HAVE_SYNC_FILE_RANGE" ]) -if conf.CheckCHeader('x86intrin.h'): +# GCC 8+ includes x86intrin.h in non-x64 versions of the compiler so limit the check to x64. +if env['TARGET_ARCH'] == 'x86_64' and conf.CheckCHeader('x86intrin.h'): conf.env.Append(CPPDEFINES=[ "HAVE_X86INTRIN_H" ]) |