File tree Expand file tree Collapse file tree 9 files changed +22
-11
lines changed Expand file tree Collapse file tree 9 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ option(LIBCXX_ENABLE_PARALLEL_ALGORITHMS "Enable the parallel algorithms library
111
111
option (LIBCXX_TEST_GDB_PRETTY_PRINTERS "Test gdb pretty printers." OFF )
112
112
set (LIBCXX_TEST_CONFIG "${CMAKE_CURRENT_SOURCE_DIR} /test/lit.site.cfg.in" CACHE STRING
113
113
"The Lit testing configuration to use when running the tests." )
114
+ set (LIBCXX_TEST_PARAMS "" CACHE STRING
115
+ "A list of parameters to run the Lit test suite with." )
114
116
115
117
# Benchmark options -----------------------------------------------------------
116
118
option (LIBCXX_INCLUDE_BENCHMARKS "Build the libc++ benchmarks and their dependencies" ON )
Original file line number Diff line number Diff line change 1
- set (LLVM_LIT_ARGS "--param std=c++03" CACHE STRING "" )
1
+ set (LIBCXX_TEST_PARAMS "std=c++03" CACHE STRING "" )
2
+ set (LIBCXXABI_TEST_PARAMS "${LIBCXX_TEST_PARAMS} " CACHE STRING "" )
Original file line number Diff line number Diff line change 1
- set (LLVM_LIT_ARGS "--param std=c++11" CACHE STRING "" )
1
+ set (LIBCXX_TEST_PARAMS "std=c++11" CACHE STRING "" )
2
+ set (LIBCXXABI_TEST_PARAMS "${LIBCXX_TEST_PARAMS} " CACHE STRING "" )
Original file line number Diff line number Diff line change 1
- set (LLVM_LIT_ARGS "--param std=c++14" CACHE STRING "" )
1
+ set (LIBCXX_TEST_PARAMS "std=c++14" CACHE STRING "" )
2
+ set (LIBCXXABI_TEST_PARAMS "${LIBCXX_TEST_PARAMS} " CACHE STRING "" )
Original file line number Diff line number Diff line change 1
- set (LLVM_LIT_ARGS "--param std=c++17" CACHE STRING "" )
1
+ set (LIBCXX_TEST_PARAMS "std=c++17" CACHE STRING "" )
2
+ set (LIBCXXABI_TEST_PARAMS "${LIBCXX_TEST_PARAMS} " CACHE STRING "" )
Original file line number Diff line number Diff line change 1
- set (LLVM_LIT_ARGS "--param std=c++2a" CACHE STRING "" )
1
+ set (LIBCXX_TEST_PARAMS "std=c++2a" CACHE STRING "" )
2
+ set (LIBCXXABI_TEST_PARAMS "${LIBCXX_TEST_PARAMS} " CACHE STRING "" )
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ if(LIBCXX_TEST_GDB_PRETTY_PRINTERS)
103
103
endif ()
104
104
105
105
if (LIBCXX_INCLUDE_TESTS )
106
- include (AddLLVM ) # for configure_lit_site_cfg and add_lit_testsuite
106
+ include (AddLLVM ) # for configure_lit_site_cfg and add_lit_target
107
107
108
108
configure_lit_site_cfg (
109
109
"${LIBCXX_TEST_CONFIG} "
@@ -114,10 +114,11 @@ if (LIBCXX_INCLUDE_TESTS)
114
114
DEPENDS cxx ${LIBCXX_TEST_DEPS}
115
115
COMMENT "Builds dependencies required to run the test suite." )
116
116
117
- add_lit_testsuite (check-cxx
117
+ add_lit_target (check-cxx
118
118
"Running libcxx tests"
119
119
${CMAKE_CURRENT_BINARY_DIR}
120
- DEPENDS check-cxx-deps )
120
+ DEPENDS check-cxx-deps
121
+ PARAMS "${LIBCXX_TEST_PARAMS} " )
121
122
endif ()
122
123
123
124
if (LIBCXX_GENERATE_COVERAGE )
Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ option(LIBCXXABI_HERMETIC_STATIC_LIBRARY
137
137
138
138
set (LIBCXXABI_TEST_CONFIG "${CMAKE_CURRENT_SOURCE_DIR} /test/lit.site.cfg.in" CACHE STRING
139
139
"The Lit testing configuration to use when running the tests." )
140
+ set (LIBCXXABI_TEST_PARAMS "" CACHE STRING
141
+ "A list of parameters to run the Lit test suite with." )
140
142
141
143
#===============================================================================
142
144
# Configure System
Original file line number Diff line number Diff line change 1
- include (AddLLVM ) # for add_lit_testsuite
1
+ include (AddLLVM ) # for configure_lit_site_cfg and add_lit_target
2
2
macro (pythonize_bool var )
3
3
if (${var} )
4
4
set (${var} True )
@@ -76,6 +76,7 @@ configure_lit_site_cfg(
76
76
${CMAKE_CURRENT_BINARY_DIR} /lit.site.cfg
77
77
MAIN_CONFIG "${CMAKE_CURRENT_SOURCE_DIR} /lit.cfg.py" )
78
78
79
- add_lit_testsuite (check-cxxabi "Running libcxxabi tests"
79
+ add_lit_target (check-cxxabi "Running libcxxabi tests"
80
80
${CMAKE_CURRENT_BINARY_DIR}
81
- DEPENDS ${LIBCXXABI_TEST_DEPS} )
81
+ DEPENDS ${LIBCXXABI_TEST_DEPS}
82
+ PARAMS "${LIBCXXABI_TEST_PARAMS} " )
You can’t perform that action at this time.
0 commit comments