We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d7acb2 commit 94bb1e8Copy full SHA for 94bb1e8
stdlib/public/Concurrency/Task.cpp
@@ -22,7 +22,9 @@
22
#include "TaskPrivate.h"
23
#include "AsyncCall.h"
24
25
+#if !SWIFT_CONCURRENCY_COOPERATIVE_GLOBAL_EXECUTOR
26
#include <dispatch/dispatch.h>
27
+#endif
28
29
#if !defined(_WIN32)
30
#include <dlfcn.h>
@@ -536,7 +538,7 @@ void swift::swift_continuation_logFailedCheck(const char *message) {
536
538
}
537
539
540
void swift::swift_task_asyncMainDrainQueue() {
-#if !defined(_WIN32)
541
+#if !defined(_WIN32) && !defined(__wasi__)
542
auto runLoop =
543
reinterpret_cast<void (*)(void)>(dlsym(RTLD_DEFAULT, "CFRunLoopRun"));
544
if (runLoop)
0 commit comments