Skip to content

Commit 15cea27

Browse files
authored
Fix compiling test runners for Android by using the full overlay (#8018)
### Motivation: Compiling test runners with `import Bionic` worked till July, then the compiler started requiring the larger `import Android` overlay. ### Modifications: `import Android` instead in the test runner ### Result: Compiling the tests for Android works again. This is part of a larger patch I needed to natively run SwiftPM 6 on Android, but I want to get this into the 6.0 patch releases quickly first because it also breaks cross-compilation of packages' tests to Android. @bnbarham, can we get this into 6.0.2 next?
1 parent 4723fff commit 15cea27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Build/TestObservation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ public func generateTestObservationCode(buildParameters: BuildParameters) -> Str
132132
@_exported import WinSDK
133133
#elseif os(WASI)
134134
@_exported import WASILibc
135-
#elseif canImport(Bionic)
136-
@_exported import Bionic
135+
#elseif canImport(Android)
136+
@_exported import Android
137137
#else
138138
@_exported import Darwin.C
139139
#endif

0 commit comments

Comments
 (0)