summaryrefslogtreecommitdiff
path: root/src/third_party
diff options
context:
space:
mode:
authorDavid Hows <howsdav@gmail.com>2016-08-25 16:16:18 +1000
committerDavid Hows <howsdav@gmail.com>2016-08-25 17:23:49 +1000
commitf89fe9a4cdb7f710ec50050b8365f6cbf83381a4 (patch)
tree6e433f09efd0c1230db9ff081b9903e8730dc470 /src/third_party
parent2b3da87372ddb61a2226a7c11ba8d0b41c12278e (diff)
downloadmongo-f89fe9a4cdb7f710ec50050b8365f6cbf83381a4.tar.gz
SERVER-25790 Add support for WiredTiger's s390x accelerated CRC32 support
Diffstat (limited to 'src/third_party')
-rw-r--r--src/third_party/wiredtiger/SConscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/SConscript b/src/third_party/wiredtiger/SConscript
index 5fddaf582e5..d66b31ba11c 100644
--- a/src/third_party/wiredtiger/SConscript
+++ b/src/third_party/wiredtiger/SConscript
@@ -139,6 +139,9 @@ condition_map = {
'POSIX_HOST' : not env.TargetOSIs('windows'),
'POWERPC_HOST' : env['TARGET_ARCH'] == 'ppc64le',
'WINDOWS_HOST' : env.TargetOSIs('windows'),
+ # This isn't perfect. But should cover for our build environments
+ 'X86_HOST' : env['TARGET_ARCH'] not in ('ppc64le', 's390x'),
+ 'ZSERIES_HOST' : env['TARGET_ARCH'] == 's390x'
}
def filtered_filelist(f):
@@ -146,7 +149,7 @@ def filtered_filelist(f):
file_cond = line.split()
if line.startswith("#") or len(file_cond) == 0:
continue
- if len(file_cond) == 1 or condition_map[file_cond[1]]:
+ if len(file_cond) == 1 or condition_map.get(file_cond[1], False):
yield file_cond[0]
filelistfile = 'dist/filelist'