Skip to content

Commit 9eefc24

Browse files
drexinMaxDesiatov
authored andcommitted
[Build] Only require libdispatch source on non-Darwin (#66081)
1 parent 79766f5 commit 9eefc24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/cmake/modules/StdlibOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ if(SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY AND "${SWIFT_CONCURRENCY_GLOBAL_EXECUTO
236236
set(SWIFT_CONCURRENCY_USES_DISPATCH TRUE)
237237
endif()
238238

239-
if(SWIFT_CONCURRENCY_USES_DISPATCH)
239+
if(SWIFT_CONCURRENCY_USES_DISPATCH AND NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
240240
if(NOT EXISTS "${SWIFT_PATH_TO_LIBDISPATCH_SOURCE}")
241241
message(SEND_ERROR "Concurrency requires libdispatch on non-Darwin hosts. Please specify SWIFT_PATH_TO_LIBDISPATCH_SOURCE")
242242
endif()

0 commit comments

Comments
 (0)