diff --git a/Sources/SwiftSDKGenerator/Generator/SwiftSDKGenerator+Copy.swift b/Sources/SwiftSDKGenerator/Generator/SwiftSDKGenerator+Copy.swift index 1220cd9..01b1bcd 100644 --- a/Sources/SwiftSDKGenerator/Generator/SwiftSDKGenerator+Copy.swift +++ b/Sources/SwiftSDKGenerator/Generator/SwiftSDKGenerator+Copy.swift @@ -101,6 +101,9 @@ extension SwiftSDKGenerator { ("swift/linux", pathsConfiguration.toolchainDirPath.appending("usr/lib/swift")), ("swift_static/linux", pathsConfiguration.toolchainDirPath.appending("usr/lib/swift_static")), ("swift_static/shims", pathsConfiguration.toolchainDirPath.appending("usr/lib/swift_static")), + ("swift/dispatch", sdkDirPath.appending("usr/include")), + ("swift/os", sdkDirPath.appending("usr/include")), + ("swift/CoreFoundation", sdkDirPath.appending("usr/include")), ] { try await rsync(from: distributionPath.appending(pathWithinPackage), to: pathWithinSwiftSDK) } diff --git a/Sources/SwiftSDKGenerator/SwiftSDKRecipes/LinuxRecipe.swift b/Sources/SwiftSDKGenerator/SwiftSDKRecipes/LinuxRecipe.swift index 4c2d0d3..f92c4b9 100644 --- a/Sources/SwiftSDKGenerator/SwiftSDKRecipes/LinuxRecipe.swift +++ b/Sources/SwiftSDKGenerator/SwiftSDKRecipes/LinuxRecipe.swift @@ -115,19 +115,6 @@ public struct LinuxRecipe: SwiftSDKRecipe { toolset.librarian = Toolset.ToolProperties(path: "llvm-ar") } - public func applyPlatformOptions( - metadata: inout SwiftSDKMetadataV4.TripleProperties, - paths: PathsConfiguration, - targetTriple: Triple - ) { - var relativeSDKDir = self.sdkDirPath(paths: paths) - guard relativeSDKDir.removePrefix(paths.swiftSDKRootPath) else { - fatalError("The SDK directory path must be a subdirectory of the Swift SDK root path.") - } - metadata.swiftResourcesPath = relativeSDKDir.appending("usr/lib/swift").string - metadata.swiftStaticResourcesPath = relativeSDKDir.appending("usr/lib/swift_static").string - } - public var defaultArtifactID: String { """ \(self.versionsConfiguration.swiftVersion)_\(self.linuxDistribution.name.rawValue)_\(