diff options
author | Vedant Kumar <vsk@apple.com> | 2017-09-12 00:01:13 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-09-12 00:01:13 +0000 |
commit | 21edaff6f39b7d929f4b99274c0dff5faa681eab (patch) | |
tree | 87720d94a29d7739b397060b664c2bcd5f0c0d7f /test | |
parent | 2b4678996a6e46b574289f951fa0a7e958847533 (diff) |
[ubsan-minimal] Disable x86_64h tests when not on x86_64h
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@312982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/ubsan_minimal/lit.common.cfg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ubsan_minimal/lit.common.cfg b/test/ubsan_minimal/lit.common.cfg index 6f239ede6..ab0eb9720 100644 --- a/test/ubsan_minimal/lit.common.cfg +++ b/test/ubsan_minimal/lit.common.cfg @@ -33,4 +33,8 @@ config.suffixes = ['.c', '.cc', '.cpp'] if config.host_os not in ['Linux', 'FreeBSD', 'NetBSD', 'Darwin']: # TODO: Windows config.unsupported = True +# Don't target x86_64h if the test machine can't execute x86_64h binaries. +if config.target_arch == 'x86_64h' and 'x86_64h' not in config.available_features: + config.unsupported = True + config.available_features.add('arch=' + config.target_arch) |