summaryrefslogtreecommitdiff
path: root/test/ubsan_minimal
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-09-12 17:32:25 +0000
committerVedant Kumar <vsk@apple.com>2017-09-12 17:32:25 +0000
commit9765720e33a1165d932d2a08690ad8ac8df0af3e (patch)
tree8b1e567a7c2b44de3c56f60074f37d9cd84d7eec /test/ubsan_minimal
parent3fc19e2919f63fc084ae82d842080ea1611b31b3 (diff)
[ubsan-minimal] Fix the x86_64h config check
Checking if config.target_arch is x86_64h doesn't work (the 'h' suffix is dropped here, and I didn't account for that). Instead, check to see if '-arch x86_64h' is in the cflags. Tested on a pre-Haswell bot. rdar://problem/34378605 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@313053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan_minimal')
-rw-r--r--test/ubsan_minimal/lit.common.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ubsan_minimal/lit.common.cfg b/test/ubsan_minimal/lit.common.cfg
index ab0eb9720..e8b42bb82 100644
--- a/test/ubsan_minimal/lit.common.cfg
+++ b/test/ubsan_minimal/lit.common.cfg
@@ -34,7 +34,7 @@ if config.host_os not in ['Linux', 'FreeBSD', 'NetBSD', 'Darwin']: # TODO: Windo
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:
+if '-arch x86_64h' in target_cflags and 'x86_64h' not in config.available_features:
config.unsupported = True
config.available_features.add('arch=' + config.target_arch)