[ubsan-minimal] Disable x86_64h tests when not on x86_64h

llvm-svn: 312982
This commit is contained in:
Vedant Kumar 2017-09-12 00:01:13 +00:00
parent 8a55c471ba
commit 661e2422d7
1 changed files with 4 additions and 0 deletions

View File

@ -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)