|
31 | 31 | SWIFT_TAG="swift-DEVELOPMENT-SNAPSHOT-${LATEST_TOOLCHAIN_VERSION}-a" |
32 | 32 | fi |
33 | 33 | echo "tag=$SWIFT_TAG" >> $GITHUB_OUTPUT |
34 | | - echo "key=$SWIFT_TAG-ndk-${NDK_VERSION}-nosql-bundle" >> $GITHUB_OUTPUT |
| 34 | + echo "key=$SWIFT_TAG-ndk-${NDK_VERSION}-lld-bundle" >> $GITHUB_OUTPUT |
35 | 35 | - name: Get cached SDK bundle |
36 | 36 | id: cache-bundle |
37 | 37 | uses: actions/cache/restore@v4 |
@@ -228,22 +228,32 @@ jobs: |
228 | 228 | "aarch64-unknown-linux-android${ANDROID_API_LEVEL}": { |
229 | 229 | "sdkRootPath": "${ROOT}", |
230 | 230 | "swiftResourcesPath": "${ROOT}/usr/lib/swift", |
231 | | - "swiftStaticResourcesPath": "${ROOT}/usr/lib/swift_static-aarch64" |
| 231 | + "swiftStaticResourcesPath": "${ROOT}/usr/lib/swift_static-aarch64", |
| 232 | + "toolsetPaths": ["swift-toolset.json"] |
232 | 233 | }, |
233 | 234 | "x86_64-unknown-linux-android${ANDROID_API_LEVEL}": { |
234 | 235 | "sdkRootPath": "${ROOT}", |
235 | 236 | "swiftResourcesPath": "${ROOT}/usr/lib/swift", |
236 | | - "swiftStaticResourcesPath": "${ROOT}/usr/lib/swift_static-x86_64" |
| 237 | + "swiftStaticResourcesPath": "${ROOT}/usr/lib/swift_static-x86_64", |
| 238 | + "toolsetPaths": ["swift-toolset.json"] |
237 | 239 | }, |
238 | 240 | "armv7-unknown-linux-androideabi${ANDROID_API_LEVEL}": { |
239 | 241 | "sdkRootPath": "${ROOT}", |
240 | 242 | "swiftResourcesPath": "${ROOT}/usr/lib/swift", |
241 | | - "swiftStaticResourcesPath": "${ROOT}/usr/lib/swift_static-armv7" |
| 243 | + "swiftStaticResourcesPath": "${ROOT}/usr/lib/swift_static-armv7", |
| 244 | + "toolsetPaths": ["swift-toolset.json"] |
242 | 245 | } |
243 | 246 | } |
244 | 247 | } |
245 | 248 | EOF |
246 | 249 |
|
| 250 | + cat > $BUNDLE_DIR/$SDK_DIR/swift-toolset.json << EOF |
| 251 | + { |
| 252 | + "swiftCompiler": { "extraCLIOptions": ["-Xclang-linker", "-fuse-ld=lld"] }, |
| 253 | + "schemaVersion": "1.0" |
| 254 | + } |
| 255 | + EOF |
| 256 | +
|
247 | 257 | cat > $BUNDLE_DIR/$SYSROOT/SDKSettings.json << EOF |
248 | 258 | { |
249 | 259 | "DisplayName": "Android NDK ${NDK_VERSION} sysroot with ${VERSION} runtime libraries for API ${ANDROID_API_LEVEL}", |
@@ -281,8 +291,6 @@ jobs: |
281 | 291 |
|
282 | 292 | if ${{ matrix.version != 'release' }}; then |
283 | 293 | FLAGS="-Xswiftc -disallow-use-new-driver" |
284 | | - else |
285 | | - FLAGS="-Xswiftc -Xclang-linker -Xswiftc -fuse-ld=lld" |
286 | 294 | fi |
287 | 295 |
|
288 | 296 | SFLAGS="--swift-sdk aarch64-unknown-linux-android${ANDROID_API_LEVEL} ${FLAGS}" |
|
0 commit comments