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 @@ -333,7 +333,7 @@ function(_add_target_variant_c_compile_flags)
333
333
endif ()
334
334
335
335
if ("${CFLAGS_SDK} " STREQUAL "WASI" )
336
- list (APPEND result "-D_WASI_EMULATED_MMAN" )
336
+ list (APPEND result "-D_WASI_EMULATED_MMAN" "-D_WASI_EMULATED_SIGNAL" "-D_WASI_EMULATED_PROCESS_CLOCKS" )
337
337
endif ()
338
338
339
339
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