Skip to content

Commit 04de75d

Browse files
authored
Merge pull request #2286 from ericniebler/disable-exec-modules-build
test_empty.cpp is crashing clang so disable building the exec module
2 parents c4b51c4 + 2e86d88 commit 04de75d

1 file changed

Lines changed: 10 additions & 15 deletions

File tree

‎test/exec/CMakeLists.txt‎

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,19 @@ set_source_files_properties(
7373
test_any_sender.cpp PROPERTIES COMPILE_FLAGS
7474
$<$<CXX_COMPILER_ID:MSVC>:/bigobj>)
7575

76-
if(STDEXEC_BUILD_MODULES)
77-
# these are the only files that build right now...
78-
add_executable(test.exec
79-
../test_main.cpp
80-
async_scope/test_empty.cpp)
81-
set_target_properties(test.exec PROPERTIES CXX_MODULE_STD ON)
82-
else()
76+
if(NOT STDEXEC_BUILD_MODULES)
77+
# None of the exec tests build successfully as modules yet.
8378
add_executable(test.exec ${exec_test_sources})
84-
endif()
8579

86-
add_compile_diagnostics(test.exec)
87-
target_link_libraries(
88-
test.exec
89-
PUBLIC STDEXEC::stdexec stdexec_executable_flags Catch2::Catch2WithMain
90-
PRIVATE common_test_settings)
80+
add_compile_diagnostics(test.exec)
81+
target_link_libraries(
82+
test.exec
83+
PUBLIC STDEXEC::stdexec stdexec_executable_flags Catch2::Catch2WithMain
84+
PRIVATE common_test_settings)
9185

92-
# Discover the Catch2 test built by the application
93-
catch_discover_tests(test.exec PROPERTIES TIMEOUT 30)
86+
# Discover the Catch2 test built by the application
87+
catch_discover_tests(test.exec PROPERTIES TIMEOUT 30)
88+
endif()
9489

9590
if(STDEXEC_ENABLE_ASIO)
9691
add_subdirectory(asio)

0 commit comments

Comments
 (0)