Skip to content

Commit df2ca60

Browse files
[WASM] Don't build libdispatch for Wasm
1 parent 5941cb9 commit df2ca60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/modules/Libdispatch.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ endif()
4747
# Build any target libdispatch if needed.
4848
foreach(sdk ${SWIFT_SDKS})
4949
# Apple targets have libdispatch available, do not build it.
50-
if(NOT "${sdk}" IN_LIST SWIFT_APPLE_PLATFORMS)
50+
# Wasm/WASI doesn't support libdispatch yet.
51+
if(NOT "${sdk}" IN_LIST SWIFT_APPLE_PLATFORMS AND NOT "${sdk}" STREQUAL WASI)
5152
list(APPEND DISPATCH_SDKS "${sdk}")
5253
endif()
5354
endforeach()

0 commit comments

Comments
 (0)