Skip to content

Commit 4e41b80

Browse files
committed
Add back -fPIC flag that was used before switching to an SDK bundle
1 parent 5f07fb0 commit 4e41b80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/sdks.yml

Lines changed: 2 additions & 1 deletion
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}-lld-bundle" >> $GITHUB_OUTPUT
34+
echo "key=$SWIFT_TAG-ndk-${NDK_VERSION}-pic-bundle" >> $GITHUB_OUTPUT
3535
- name: Get cached SDK bundle
3636
id: cache-bundle
3737
uses: actions/cache/restore@v4
@@ -249,6 +249,7 @@ jobs:
249249
250250
cat > $BUNDLE_DIR/$SDK_DIR/swift-toolset.json << EOF
251251
{
252+
"cCompiler": { "extraCLIOptions": ["-fPIC"] },
252253
"swiftCompiler": { "extraCLIOptions": ["-Xclang-linker", "-fuse-ld=lld"] },
253254
"schemaVersion": "1.0"
254255
}

0 commit comments

Comments
 (0)