Skip to content

Commit 8bac222

Browse files
committed
Include some test.exec tests in the modules build
This diff moves the special-casing of `test.exec` down into the nearest `CMakeLists.txt` file; most of the tests in `test/exec` don't build, but a couple of them do.
1 parent 6990c4e commit 8bac222

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

test/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,7 @@ if(STDEXEC_BUILD_PARALLEL_SCHEDULER AND NOT STDEXEC_ENABLE_CUDA)
171171
30)
172172
endif()
173173

174-
if(NOT STDEXEC_BUILD_MODULES)
175-
# temporarily speed up the test cycle by building less
176-
add_subdirectory(exec)
177-
endif()
174+
add_subdirectory(exec)
178175

179176
if(STDEXEC_ENABLE_CUDA)
180177
add_subdirectory(nvexec)

test/exec/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,15 @@ set_source_files_properties(
7070
test_any_sender.cpp PROPERTIES COMPILE_FLAGS
7171
$<$<CXX_COMPILER_ID:MSVC>:/bigobj>)
7272

73-
add_executable(test.exec ${exec_test_sources})
7473
if(STDEXEC_BUILD_MODULES)
74+
# these are the only files that build right now...
75+
add_executable(test.exec
76+
../test_main.cpp
77+
async_scope/test_empty.cpp
78+
async_scope/test_spawn.cpp)
7579
set_target_properties(test.exec PROPERTIES CXX_MODULE_STD ON)
80+
else()
81+
add_executable(test.exec ${exec_test_sources})
7682
endif()
7783

7884
add_compile_diagnostics(test.exec)

0 commit comments

Comments
 (0)