forked from OSchip/llvm-project
[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. llvm-svn: 341448
This commit is contained in:
parent
fbc59d92e6
commit
f27dcf01d2
|
@ -41,6 +41,11 @@ if config.omp_host_rtl_directory:
|
||||||
|
|
||||||
config.test_flags = config.test_flags + " " + config.test_extra_flags
|
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:
|
if config.libomptarget_debug:
|
||||||
config.available_features.add('libomptarget-debug')
|
config.available_features.add('libomptarget-debug')
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
config.test_c_compiler = "@OPENMP_TEST_C_COMPILER@"
|
config.test_c_compiler = "@OPENMP_TEST_C_COMPILER@"
|
||||||
config.test_cxx_compiler = "@OPENMP_TEST_CXX_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_openmp_flags = "@OPENMP_TEST_OPENMP_FLAGS@"
|
||||||
config.test_extra_flags = "@OPENMP_TEST_FLAGS@"
|
config.test_extra_flags = "@OPENMP_TEST_FLAGS@"
|
||||||
config.libomptarget_obj_root = "@CMAKE_CURRENT_BINARY_DIR@"
|
config.libomptarget_obj_root = "@CMAKE_CURRENT_BINARY_DIR@"
|
||||||
|
|
|
@ -54,7 +54,7 @@ if config.has_libm:
|
||||||
if config.has_libatomic:
|
if config.has_libatomic:
|
||||||
libs += " -latomic"
|
libs += " -latomic"
|
||||||
|
|
||||||
# Allow XFAIL to work
|
# Allow REQUIRES / UNSUPPORTED / XFAIL to work
|
||||||
config.target_triple = [ ]
|
config.target_triple = [ ]
|
||||||
for feature in config.test_compiler_features:
|
for feature in config.test_compiler_features:
|
||||||
config.available_features.add(feature)
|
config.available_features.add(feature)
|
||||||
|
|
Loading…
Reference in New Issue