Skip to content

Commit ec823a3

Browse files
[WASM] Always process Foundation relocation
1 parent 7c30f10 commit ec823a3

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

utils/webassembly/build-foundation.sh

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,10 @@ cmake -G Ninja \
2121
ninja -v
2222
ninja -v install
2323

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_static/CoreFoundation
24+
mv $DESTINATION_TOOLCHAIN/usr/lib/swift/CoreFoundation \
25+
$DESTINATION_TOOLCHAIN/usr/lib/swift_static/CoreFoundation
3026

31-
mv $DESTINATION_TOOLCHAIN/usr/lib/swift/wasi/wasm32/Foundation.swiftmodule \
32-
$DESTINATION_TOOLCHAIN/usr/lib/swift_static/wasi/wasm32/Foundation.swiftmodule
33-
mv $DESTINATION_TOOLCHAIN/usr/lib/swift/wasi/wasm32/Foundation.swiftdoc \
34-
$DESTINATION_TOOLCHAIN/usr/lib/swift_static/wasi/wasm32/Foundation.swiftdoc
35-
fi
27+
mv $DESTINATION_TOOLCHAIN/usr/lib/swift/wasi/wasm32/Foundation.swiftmodule \
28+
$DESTINATION_TOOLCHAIN/usr/lib/swift_static/wasi/wasm32/Foundation.swiftmodule
29+
mv $DESTINATION_TOOLCHAIN/usr/lib/swift/wasi/wasm32/Foundation.swiftdoc \
30+
$DESTINATION_TOOLCHAIN/usr/lib/swift_static/wasi/wasm32/Foundation.swiftdoc

0 commit comments

Comments
 (0)