mirror of
https://github.com/cirruslabs/tart.git
synced 2026-09-29 18:51:19 +02:00
Weak-link Swift compatibility library in Tart releases (#1339)
* Bundle Swift compatibility libraries in Tart releases * fix(release): weak-link Swift compatibility library * fix(release): weak-link from Xcode 27 library path
This commit is contained in:
@@ -5,12 +5,15 @@ set -eu
|
|||||||
ARCH="$1"
|
ARCH="$1"
|
||||||
SCRATCH_PATH=".build/$ARCH"
|
SCRATCH_PATH=".build/$ARCH"
|
||||||
OUTPUT_PATH=".build/prebuilt/$ARCH"
|
OUTPUT_PATH=".build/prebuilt/$ARCH"
|
||||||
|
SWIFT_COMPATIBILITY_LIBRARY="$(dirname "$(xcrun --find swiftc)")/../lib/swift-6.2/macosx/libswiftCompatibilitySpan.dylib"
|
||||||
|
|
||||||
swift build \
|
swift build \
|
||||||
--build-system swiftbuild \
|
--build-system swiftbuild \
|
||||||
--scratch-path "$SCRATCH_PATH" \
|
--scratch-path "$SCRATCH_PATH" \
|
||||||
--arch "$ARCH" \
|
--arch "$ARCH" \
|
||||||
--configuration release \
|
--configuration release \
|
||||||
|
-Xlinker -weak_library \
|
||||||
|
-Xlinker "$SWIFT_COMPATIBILITY_LIBRARY" \
|
||||||
--product tart
|
--product tart
|
||||||
|
|
||||||
BIN_PATH=$(swift build \
|
BIN_PATH=$(swift build \
|
||||||
|
|||||||
Reference in New Issue
Block a user