@@ -64,7 +64,7 @@ if(BUILD_SHARED_LIBS)
6464endif ()
6565
6666set (FOUNDATION_BUILD_NETWORKING_default ON )
67- if (CMAKE_SYSTEM_NAME STREQUAL WASI)
67+ if (CMAKE_SYSTEM_NAME STREQUAL " WASI" )
6868 # Networking is not supported on WASI
6969 set (FOUNDATION_BUILD_NETWORKING_default OFF )
7070endif ()
@@ -133,7 +133,7 @@ endif()
133133# System dependencies
134134
135135# We know libdispatch is always unavailable on WASI
136- if (NOT CMAKE_SYSTEM_NAME STREQUAL WASI)
136+ if (NOT CMAKE_SYSTEM_NAME STREQUAL " WASI" )
137137 find_package (LibRT)
138138 find_package (dispatch CONFIG)
139139 if (NOT dispatch_FOUND)
@@ -170,7 +170,7 @@ list(APPEND _Foundation_common_build_flags
170170 "-Wno-switch"
171171 "-fblocks" )
172172
173- if (NOT CMAKE_SYSTEM_NAME STREQUAL WASI)
173+ if (NOT CMAKE_SYSTEM_NAME STREQUAL " WASI" )
174174 list (APPEND _Foundation_common_build_flags
175175 "-DDEPLOYMENT_ENABLE_LIBDISPATCH"
176176 "-DSWIFT_CORELIBS_FOUNDATION_HAS_THREADS" )
@@ -206,7 +206,7 @@ list(APPEND _Foundation_swift_build_flags
206206 "-Xfrontend"
207207 "-require-explicit-sendable" )
208208
209- if (CMAKE_SYSTEM_NAME STREQUAL WASI)
209+ if (CMAKE_SYSTEM_NAME STREQUAL " WASI" )
210210 # Enable wasi-libc emulation features
211211 set (WASI_EMULATION_DEFS _WASI_EMULATED_MMAN _WASI_EMULATED_SIGNAL _WASI_EMULATED_PROCESS_CLOCKS)
212212 foreach (def ${WASI_EMULATION_DEFS} )
0 commit comments