File tree Expand file tree Collapse file tree 7 files changed +16
-3
lines changed Expand file tree Collapse file tree 7 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,14 @@ config.library_dir = "@LIBOMP_LIBRARY_DIR@"
12
12
config.ompd_library_dir = "@CMAKE_CURRENT_BINARY_DIR@/../src/"
13
13
config.omp_header_directory = "@LIBOMP_BINARY_DIR@/src"
14
14
config.operating_system = "@CMAKE_SYSTEM_NAME@"
15
+ config.target_triple = "@LLVM_TARGET_TRIPLE@"
15
16
16
17
config.ompt_plugin = "@OMPT_PLUGIN@"
17
18
config.ompt_include_dir = "@LIBOMP_INCLUDE_DIR@"
18
19
config.ompd_module = "@CMAKE_CURRENT_BINARY_DIR@/../gdb-plugin/python-module/ompd/"
19
20
21
+ import lit.llvm
22
+ lit.llvm.initialize(lit_config, config)
23
+
20
24
# Let the main config do the real work.
21
25
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg")
Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ if config.operating_system != 'Haiku':
70
70
libs += " -latomic"
71
71
72
72
# Allow REQUIRES / UNSUPPORTED / XFAIL to work
73
- config .target_triple = [ ]
74
73
for feature in config .test_compiler_features :
75
74
config .available_features .add (feature )
76
75
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ config.libomp_obj_root = "@CMAKE_CURRENT_BINARY_DIR@"
12
12
config.library_dir = "@LIBOMP_LIBRARY_DIR@"
13
13
config.omp_header_directory = "@LIBOMP_BINARY_DIR@/src"
14
14
config.operating_system = "@CMAKE_SYSTEM_NAME@"
15
+ config.target_triple = "@LLVM_TARGET_TRIPLE@"
15
16
config.hwloc_library_dir = "@LIBOMP_HWLOC_LIBRARY_DIR@"
16
17
config.using_hwloc = @LIBOMP_USE_HWLOC@
17
18
config.has_ompt = @LIBOMP_OMPT_SUPPORT@ and @LIBOMP_OMPT_OPTIONAL@
@@ -24,5 +25,8 @@ config.target_arch = "@LIBOMP_ARCH@"
24
25
config.compiler_frontend_variant = "@CMAKE_C_COMPILER_FRONTEND_VARIANT@"
25
26
config.compiler_simulate_id = "@CMAKE_C_SIMULATE_ID@"
26
27
28
+ import lit.llvm
29
+ lit.llvm.initialize(lit_config, config)
30
+
27
31
# Let the main config do the real work.
28
32
lit_config.load_config(config, "@LIBOMP_BASE_DIR@/test/lit.cfg")
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ if config.has_libatomic:
58
58
libs += " -latomic"
59
59
60
60
# Allow XFAIL to work
61
- config .target_triple = [ ]
62
61
for feature in config .test_compiler_features :
63
62
config .available_features .add (feature )
64
63
Original file line number Diff line number Diff line change @@ -11,11 +11,15 @@ config.libomp_obj_root = "@CMAKE_CURRENT_BINARY_DIR@"
11
11
config.omp_library_dir = "@LIBOMP_LIBRARY_DIR@"
12
12
config.omp_header_dir = "@LIBOMP_INCLUDE_DIR@"
13
13
config.operating_system = "@CMAKE_SYSTEM_NAME@"
14
+ config.target_triple = "@LLVM_TARGET_TRIPLE@"
14
15
config.has_libatomic = @LIBARCHER_HAVE_LIBATOMIC@
15
16
config.has_tsan = @OPENMP_TEST_ENABLE_TSAN@
16
17
17
18
config.test_archer_flags = "@LIBARCHER_TEST_FLAGS@"
18
19
config.libarcher_obj_root = "@CMAKE_CURRENT_BINARY_DIR@"
19
20
21
+ import lit.llvm
22
+ lit.llvm.initialize(lit_config, config)
23
+
20
24
# Let the main config do the real work.
21
25
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg")
Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ if 'CHECK_OPENMP_ENV' in os.environ:
63
63
config .environment [name ] = value
64
64
65
65
# Allow XFAIL to work
66
- config .target_triple = [ ]
67
66
for feature in config .test_compiler_features :
68
67
config .available_features .add (feature )
69
68
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ config.omp_library_dir = "@LIBOMP_LIBRARY_DIR@"
11
11
config.omp_header_dir = "@LIBOMP_INCLUDE_DIR@"
12
12
config.ompt_print_callback_dir = "@OMPT_PRINT_CALLBACKS_DIR@"
13
13
config.operating_system = "@CMAKE_SYSTEM_NAME@"
14
+ config.target_triple = "@LLVM_TARGET_TRIPLE@"
15
+
16
+ import lit.llvm
17
+ lit.llvm.initialize(lit_config, config)
14
18
15
19
# Let the main config do the real work.
16
20
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg")
You can’t perform that action at this time.
0 commit comments