Skip to content

Commit 8798704

Browse files
Restore CoreFoundation workaround on macOS
1 parent 6bbf3f3 commit 8798704

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

utils/webassembly/build-foundation.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ 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

0 commit comments

Comments
 (0)