Skip to content

Commit 90d9ce7

Browse files
committed
Concurrency: handle android similar to Linux
Android should use the dispatch based, Linux platform executor. However, Android reports as `os(Android)` rather than `os(Linux)`. This adjusts the condition to ensure that we have a platform executor factory for Android.
1 parent deb1d96 commit 90d9ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/PlatformExecutorLinux.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#if !$Embedded && os(Linux)
13+
#if !$Embedded && (os(Linux) || os(Android))
1414

1515
import Swift
1616

0 commit comments

Comments
 (0)