[compiler-rt] r312982 - [ubsan-minimal] Disable x86_64h tests when not on x86_64h
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 17:01:13 PDT 2017
Author: vedantk
Date: Mon Sep 11 17:01:13 2017
New Revision: 312982
URL: http://llvm.org/viewvc/llvm-project?rev=312982&view=rev
Log:
[ubsan-minimal] Disable x86_64h tests when not on x86_64h
Modified:
compiler-rt/trunk/test/ubsan_minimal/lit.common.cfg
Modified: compiler-rt/trunk/test/ubsan_minimal/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan_minimal/lit.common.cfg?rev=312982&r1=312981&r2=312982&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan_minimal/lit.common.cfg (original)
+++ compiler-rt/trunk/test/ubsan_minimal/lit.common.cfg Mon Sep 11 17:01:13 2017
@@ -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)
More information about the llvm-commits
mailing list