summaryrefslogtreecommitdiff
path: root/openmp/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
commit4586eb096df344e119b00af187f721d272dcca10 (patch)
tree8a7834b804184e4dcc30b06676b3e0bfc507a082 /openmp/libomptarget
parent87cb0af4a3240d052b18c472e702cc6450cd1a37 (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.
Diffstat (limited to 'openmp/libomptarget')
-rw-r--r--openmp/libomptarget/test/lit.cfg5
-rw-r--r--openmp/libomptarget/test/lit.site.cfg.in1
2 files changed, 6 insertions, 0 deletions
diff --git a/openmp/libomptarget/test/lit.cfg b/openmp/libomptarget/test/lit.cfg
index cc085d63eda..43116055c82 100644
--- a/openmp/libomptarget/test/lit.cfg
+++ b/openmp/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/openmp/libomptarget/test/lit.site.cfg.in b/openmp/libomptarget/test/lit.site.cfg.in
index 6b27c4b839b..dc908a95616 100644
--- a/openmp/libomptarget/test/lit.site.cfg.in
+++ b/openmp/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@"