File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,17 @@ cmake -G Ninja \
2424ninja -v
2525ninja -v install
2626
27- mv $DESTINATION_TOOLCHAIN /usr/lib/swift_static/CoreFoundation \
28- $DESTINATION_TOOLCHAIN /usr/lib/swift/wasi/wasm32/CoreFoundation
27+ # On macOS the target CoreFoundation shadows the CoreFoundation suppplied by Xcode.
28+ # On Linux though there's no system CoreFoundation, its headers have to be shipped
29+ # in the installable archive and serve for both host and target.
30+ if [[ " $( uname) " == " Darwin" ]]; then
31+ mv $DESTINATION_TOOLCHAIN /usr/lib/swift_static/CoreFoundation \
32+ $DESTINATION_TOOLCHAIN /usr/lib/swift/wasi/wasm32/CoreFoundation
33+ else
34+ mv $DESTINATION_TOOLCHAIN /usr/lib/swift_static/CoreFoundation \
35+ $DESTINATION_TOOLCHAIN /usr/lib/swift/CoreFoundation
36+ fi
2937
3038# .swiftdoc and .swiftmodule files should live in `swift`, not in `swift_static`
3139mv $DESTINATION_TOOLCHAIN /usr/lib/swift_static/wasi/wasm32/Foundation.swift* \
32- $DESTINATION_TOOLCHAIN /usr/lib/swift/wasi/wasm32
40+ $DESTINATION_TOOLCHAIN /usr/lib/swift/wasi/wasm32
You can’t perform that action at this time.
0 commit comments