Skip to content

Commit d487b3d

Browse files
[WASM] Fix swift_static workarounds
1 parent 20e7dd1 commit d487b3d

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

utils/webassembly/build-foundation.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,3 @@ cmake -G Ninja \
2020

2121
ninja -v
2222
ninja -v install
23-
24-
# On macOS the target CoreFoundation shadows the CoreFoundation suppplied by Xcode.
25-
# On Linux though there's no system CoreFoundation, its headers have to be shipped
26-
# in the installable archive and serve for both host and target.
27-
if [[ "$(uname)" == "Darwin" ]]; then
28-
mv $DESTINATION_TOOLCHAIN/usr/lib/swift/CoreFoundation \
29-
$DESTINATION_TOOLCHAIN/usr/lib/swift/wasi/wasm32/CoreFoundation
30-
fi

utils/webassembly/build-xctest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cmake -G Ninja \
1515
-DWASI_SDK_PATH="$SOURCE_PATH/wasi-sdk" \
1616
-DBUILD_SHARED_LIBS=OFF \
1717
-DCMAKE_Swift_COMPILER_FORCED=ON \
18-
-DSWIFT_FOUNDATION_PATH=$DESTINATION_TOOLCHAIN/usr/lib/swift/wasi/wasm32 \
18+
-DSWIFT_FOUNDATION_PATH=$DESTINATION_TOOLCHAIN/usr/lib/swift_static/wasi/wasm32 \
1919
"${SOURCE_PATH}/swift-corelibs-xctest"
2020

2121
ninja -v

0 commit comments

Comments
 (0)