[Openmp-commits] [openmp] r341448 - [libomptaret][test] Announce compiler features

Jonas Hahnfeld via Openmp-commits openmp-commits at lists.llvm.org
Wed Sep 5 00:26:00 PDT 2018


Author: hahnfeld
Date: Wed Sep  5 00:26:00 2018
New Revision: 341448

URL: http://llvm.org/viewvc/llvm-project?rev=341448&view=rev
Log:
[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.

Modified:
    openmp/trunk/libomptarget/test/lit.cfg
    openmp/trunk/libomptarget/test/lit.site.cfg.in
    openmp/trunk/runtime/test/lit.cfg

Modified: openmp/trunk/libomptarget/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/test/lit.cfg?rev=341448&r1=341447&r2=341448&view=diff
==============================================================================
--- openmp/trunk/libomptarget/test/lit.cfg (original)
+++ openmp/trunk/libomptarget/test/lit.cfg Wed Sep  5 00:26:00 2018
@@ -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')
 

Modified: openmp/trunk/libomptarget/test/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/test/lit.site.cfg.in?rev=341448&r1=341447&r2=341448&view=diff
==============================================================================
--- openmp/trunk/libomptarget/test/lit.site.cfg.in (original)
+++ openmp/trunk/libomptarget/test/lit.site.cfg.in Wed Sep  5 00:26:00 2018
@@ -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@"

Modified: openmp/trunk/runtime/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/test/lit.cfg?rev=341448&r1=341447&r2=341448&view=diff
==============================================================================
--- openmp/trunk/runtime/test/lit.cfg (original)
+++ openmp/trunk/runtime/test/lit.cfg Wed Sep  5 00:26:00 2018
@@ -54,7 +54,7 @@ if config.has_libm:
 if config.has_libatomic:
     libs += " -latomic"
 
-# Allow XFAIL to work
+# Allow REQUIRES / UNSUPPORTED / XFAIL to work
 config.target_triple = [ ]
 for feature in config.test_compiler_features:
     config.available_features.add(feature)




More information about the Openmp-commits mailing list