Skip to content

Commit e40e1fb

Browse files
WebAssembly: Copy clang headers from target toolchain (#86)
The clang headers were copied from host toolchain at the first "rsync" step. But host toolchain can be optional, so we should copy the headers from the target toolchain instead.
1 parent 71dd0fa commit e40e1fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SwiftSDKGenerator/SwiftSDKRecipes/WebAssemblyRecipe.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ public struct WebAssemblyRecipe: SwiftSDKRecipe {
105105
logGenerationStep("Copying Swift core libraries for the target triple into Swift SDK bundle...")
106106
for (pathWithinPackage, pathWithinSwiftSDK) in [
107107
("clang", pathsConfiguration.toolchainDirPath.appending("usr/lib")),
108+
("swift/clang", pathsConfiguration.toolchainDirPath.appending("usr/lib/swift")),
108109
("swift/wasi", pathsConfiguration.toolchainDirPath.appending("usr/lib/swift")),
110+
("swift_static/clang", pathsConfiguration.toolchainDirPath.appending("usr/lib/swift_static")),
109111
("swift_static/wasi", pathsConfiguration.toolchainDirPath.appending("usr/lib/swift_static")),
110112
("swift_static/shims", pathsConfiguration.toolchainDirPath.appending("usr/lib/swift_static")),
111113
("swift_static/CoreFoundation", pathsConfiguration.toolchainDirPath.appending("usr/lib/swift_static")),

0 commit comments

Comments
 (0)