File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ function(_add_target_variant_c_compile_flags)
323
323
endif ()
324
324
325
325
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_SIGNAL" "- D_WASI_EMULATED_PROCESS_CLOCKS" )
327
327
endif ()
328
328
329
329
if (NOT SWIFT_STDLIB_ENABLE_OBJC_INTEROP )
Original file line number Diff line number Diff line change @@ -244,6 +244,10 @@ function(_add_target_variant_swift_compile_flags
244
244
"-target" "${SWIFT_SDK_${sdk} _ARCH_${arch} _TRIPLE}" )
245
245
endif ()
246
246
247
+ if ("${sdk} " STREQUAL "WASI" )
248
+ list (APPEND result "-Xcc" "-D_WASI_EMULATED_MMAN" "-Xcc" "-D_WASI_EMULATED_SIGNAL" "-Xcc" "-D_WASI_EMULATED_PROCESS_CLOCKS" )
249
+ endif ()
250
+
247
251
if (NOT BUILD_STANDALONE )
248
252
list (APPEND result "-resource-dir" "${SWIFTLIB_DIR} " )
249
253
endif ()
You can’t perform that action at this time.
0 commit comments