Skip to content

Commit c1034b7

Browse files
committed
try to disable exceptions for Catch2
improve check for WASM in conanfile
1 parent abc1cf3 commit c1034b7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

cmake/toolchain/wasi.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
set(CMAKE_C_COMPILER /opt/wasi-sdk/bin/clang)
1818
set(CMAKE_CXX_COMPILER /opt/wasi-sdk/bin/clang++)
1919

20-
set(CMAKE_EXE_LINKER_FLAGS "-Xlinker -v -v")
21-
22-
add_compile_definitions(CATCH_CONFIG_NO_POSIX_SIGNALS JSON_HAS_FILESYSTEM=0)
20+
add_compile_definitions(CATCH_CONFIG_NO_POSIX_SIGNALS CATCH_CONFIG_DISABLE_EXCEPTIONS JSON_HAS_FILESYSTEM=0)
2321

2422
include(${CMAKE_CURRENT_LIST_DIR}/cxx20.cmake)

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def configure(self):
6363
self.options['mimalloc'].override = True
6464

6565
# Disable Catch2 version 3.x.x signaling handling on WASM
66-
if self.settings.os == 'Emscripten':
66+
if self.settings.arch == 'wasm':
6767
self.options['catch2'].no_posix_signals = True
6868

6969
self.options['boost'].asio_no_deprecated = True

0 commit comments

Comments
 (0)