We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ff0b5 commit 0eabab7Copy full SHA for 0eabab7
build-linux-cross-sdk.sh
@@ -51,14 +51,16 @@ echo "Copying Swift install into $TARGET_SDK_DIR..."
51
cp -rf $INSTALL_DESTDIR/* $TARGET_SDK_DIR
52
53
# Annoying but helpful for Swift versions < 6.1
54
-echo "Creating SDKSettings.json to silence cross-compilation warnings"
55
-cat <<EOT > $TARGET_SDK_DIR/SDKSettings.json
+if [[ $SWIFT_VERSION == *"5."* ]] || [[ $SWIFT_VERSION == *"6.0"* ]]; then
+ echo "Creating SDKSettings.json to silence cross-compilation warnings"
56
+ cat <<EOT > $TARGET_SDK_DIR/SDKSettings.json
57
{
58
"SupportedTargets": {},
59
"Version": "0.0.1",
60
"CanonicalName": "linux"
61
}
62
EOT
63
+fi
64
65
# Create destination.json file
66
echo "Creating $DISTRIBUTION.json file for SDK..."
0 commit comments