Skip to content

Commit 0d1eca1

Browse files
authored
stdlib/cmake: add missing macro definitions required for WASI (#67139)
We need `-D_WASI_EMULATED_SIGNAL` passed when building for WASI to fully support it.
1 parent 830bd75 commit 0d1eca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/cmake/modules/AddSwiftStdlib.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function(_add_target_variant_c_compile_flags)
323323
endif()
324324

325325
if("${CFLAGS_SDK}" STREQUAL "WASI")
326-
list(APPEND result "-D_WASI_EMULATED_MMAN" "-D_WASI_EMULATED_PROCESS_CLOCKS")
326+
list(APPEND result "-D_WASI_EMULATED_MMAN" "-D_WASI_EMULATED_PROCESS_CLOCKS" "-D_WASI_EMULATED_SIGNAL")
327327
endif()
328328

329329
if(NOT SWIFT_STDLIB_ENABLE_OBJC_INTEROP)

0 commit comments

Comments
 (0)