Skip to content

Commit 2fe8d03

Browse files
committed
Disable job-based dispatch integration in the back-deployed library.
1 parent a82dda5 commit 2fe8d03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stdlib/public/Concurrency/GlobalExecutor.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,9 @@ static void initializeDispatchEnqueueFunc(dispatch_queue_t queue, void *obj,
239239
dispatch_qos_class_t qos) {
240240
dispatchEnqueueFuncType func = nullptr;
241241

242-
// Always fall back to plain dispatch_async_f on Windows for now.
243-
#if !defined(_WIN32)
242+
// Always fall back to plain dispatch_async_f on Windows for now, and
243+
// also for back-deployed concurrency.
244+
#if !defined(_WIN32) && !defined(SWIFT_CONCURRENCY_BACK_DEPLOYMENT)
244245
if (runtime::environment::concurrencyEnableJobDispatchIntegration())
245246
func = reinterpret_cast<dispatchEnqueueFuncType>(
246247
dlsym(RTLD_NEXT, "dispatch_async_swift_job"));

0 commit comments

Comments
 (0)