aboutsummaryrefslogtreecommitdiff
path: root/libomptarget
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2018-09-05 07:26:00 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2018-09-05 07:26:00 +0000
commitada5cfff6b285b1e8500ce6953368d0636b11da4 (patch)
tree8b9b5edd2cd0d27783ef741d9e41f89ae55d0121 /libomptarget
parent56b2913b624c073665d6473fe5b1d965c5c5e601 (diff)
[libomptaret][test] Announce compiler features
This is a follow-up to r341371: The new test for PR38704 doesn't work with Clang 6.0. It uses an UNSUPPORTED: clang-6, but that hasn't worked because the compiler features weren't known to lit. git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@341448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'libomptarget')
-rw-r--r--libomptarget/test/lit.cfg5
-rw-r--r--libomptarget/test/lit.site.cfg.in1
2 files changed, 6 insertions, 0 deletions
diff --git a/libomptarget/test/lit.cfg b/libomptarget/test/lit.cfg
index cc085d6..4311605 100644
--- a/libomptarget/test/lit.cfg
+++ b/libomptarget/test/lit.cfg
@@ -41,6 +41,11 @@ if config.omp_host_rtl_directory:
config.test_flags = config.test_flags + " " + config.test_extra_flags
+# Allow REQUIRES / UNSUPPORTED / XFAIL to work
+config.target_triple = [ ]
+for feature in config.test_compiler_features:
+ config.available_features.add(feature)
+
if config.libomptarget_debug:
config.available_features.add('libomptarget-debug')
diff --git a/libomptarget/test/lit.site.cfg.in b/libomptarget/test/lit.site.cfg.in
index 6b27c4b..dc908a9 100644
--- a/libomptarget/test/lit.site.cfg.in
+++ b/libomptarget/test/lit.site.cfg.in
@@ -2,6 +2,7 @@
config.test_c_compiler = "@OPENMP_TEST_C_COMPILER@"
config.test_cxx_compiler = "@OPENMP_TEST_CXX_COMPILER@"
+config.test_compiler_features = @OPENMP_TEST_COMPILER_FEATURES@
config.test_openmp_flags = "@OPENMP_TEST_OPENMP_FLAGS@"
config.test_extra_flags = "@OPENMP_TEST_FLAGS@"
config.libomptarget_obj_root = "@CMAKE_CURRENT_BINARY_DIR@"