Skip to content

Commit b8c955b

Browse files
committed
Pull lld selection for the 6.0.3 patch release into a toolset config file in the SDK bundle
1 parent a0f2977 commit b8c955b

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/sdks.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
SWIFT_TAG="swift-DEVELOPMENT-SNAPSHOT-${LATEST_TOOLCHAIN_VERSION}-a"
3232
fi
3333
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
3535
- name: Get cached SDK bundle
3636
id: cache-bundle
3737
uses: actions/cache/restore@v4
@@ -228,22 +228,32 @@ jobs:
228228
"aarch64-unknown-linux-android${ANDROID_API_LEVEL}": {
229229
"sdkRootPath": "${ROOT}",
230230
"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"]
232233
},
233234
"x86_64-unknown-linux-android${ANDROID_API_LEVEL}": {
234235
"sdkRootPath": "${ROOT}",
235236
"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"]
237239
},
238240
"armv7-unknown-linux-androideabi${ANDROID_API_LEVEL}": {
239241
"sdkRootPath": "${ROOT}",
240242
"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"]
242245
}
243246
}
244247
}
245248
EOF
246249
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+
247257
cat > $BUNDLE_DIR/$SYSROOT/SDKSettings.json << EOF
248258
{
249259
"DisplayName": "Android NDK ${NDK_VERSION} sysroot with ${VERSION} runtime libraries for API ${ANDROID_API_LEVEL}",
@@ -281,8 +291,6 @@ jobs:
281291
282292
if ${{ matrix.version != 'release' }}; then
283293
FLAGS="-Xswiftc -disallow-use-new-driver"
284-
else
285-
FLAGS="-Xswiftc -Xclang-linker -Xswiftc -fuse-ld=lld"
286294
fi
287295
288296
SFLAGS="--swift-sdk aarch64-unknown-linux-android${ANDROID_API_LEVEL} ${FLAGS}"

0 commit comments

Comments
 (0)