From ada5cfff6b285b1e8500ce6953368d0636b11da4 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Wed, 5 Sep 2018 07:26:00 +0000 Subject: [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 --- libomptarget/test/lit.cfg | 5 +++++ libomptarget/test/lit.site.cfg.in | 1 + 2 files changed, 6 insertions(+) (limited to 'libomptarget') 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@" -- cgit v1.2.3