File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -351,8 +351,6 @@ function(_add_host_variant_c_compile_flags)
351
351
list (APPEND result "SHELL:${CMAKE_INCLUDE_SYSTEM_FLAG_C}${path} " )
352
352
endforeach ()
353
353
list (APPEND result "-D__ANDROID_API__=${SWIFT_ANDROID_API_LEVEL} " )
354
- elseif ("${CFLAGS_SDK} " STREQUAL "WASI" )
355
- list (APPEND result "-D_WASI_EMULATED_MMAN" )
356
354
endif ()
357
355
358
356
if ("${CFLAGS_SDK} " STREQUAL "LINUX" )
Original file line number Diff line number Diff line change @@ -284,6 +284,10 @@ function(_add_target_variant_c_compile_flags)
284
284
list (APPEND result "-D__ANDROID_API__=${SWIFT_ANDROID_API_LEVEL} " )
285
285
endif ()
286
286
287
+ if ("${CFLAGS_SDK} " STREQUAL "WASI" )
288
+ list (APPEND result "-D_WASI_EMULATED_MMAN" )
289
+ endif ()
290
+
287
291
if ("${CFLAGS_SDK} " STREQUAL "LINUX" )
288
292
if (${CFLAGS_ARCH} STREQUAL x86_64 )
289
293
# this is the minimum architecture that supports 16 byte CAS, which is necessary to avoid a dependency to libatomic
You can’t perform that action at this time.
0 commit comments