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 \
24
24
ninja -v
25
25
ninja -v install
26
26
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
29
37
30
38
# .swiftdoc and .swiftmodule files should live in `swift`, not in `swift_static`
31
39
mv $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