Skip to content

Commit 96bb5fb

Browse files
committed
Remove customized missing framework diagnostics
This is some very old code that modifies the wording of some diagnostics from the compiler and linker that are emitted when a framework or module is not found. It's not that useful, adds significant complexity and overhead, and would require significant refactoring to make some of the call sites properly asynchronous. We don't really need this functionality anymore, so remove it.
1 parent a01d192 commit 96bb5fb

19 files changed

+8
-877
lines changed

Sources/SWBBuildService/Messages.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private struct AppleSystemFrameworkNamesHandler: MessageHandler {
104104
guard let buildService = request.service as? BuildService else {
105105
throw StubError.error("service object is not of type BuildService")
106106
}
107-
return try await StringListResponse(Array(buildService.sharedCore(developerPath: message.effectiveDeveloperPath).appleSystemFrameworkNames()))
107+
return try await StringListResponse([])
108108
}
109109
}
110110

Sources/SWBCore/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ add_library(SWBCore
8282
MacroConfigFileLoader.swift
8383
MacroEvaluationExtensions.swift
8484
MacroExpressionSourceExtensions.swift
85-
MissingFrameworkDiagnostics.swift
8685
OnDemandResources.swift
8786
OptimizationRemarks.swift
8887
PlannedNode.swift

Sources/SWBCore/Core.swift

-4
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,6 @@ public final class Core: Sendable {
542542
return result
543543
}
544544

545-
public func appleSystemFrameworkNames() throws -> Set<String> {
546-
Set(sdkRegistry.allSDKs.flatMap { sdk in sdk.knownFrameworkNames })
547-
}
548-
549545
public func productTypeSupportsMacCatalyst(productTypeIdentifier: String) throws -> Bool {
550546
do {
551547
let productTypeSpec = try specRegistry.getSpec(productTypeIdentifier, domain: "macosx") as ProductTypeSpec

Sources/SWBCore/Extensions/SDKRegistryExtension.swift

-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public struct SDKRegistryExtensionPoint: ExtensionPoint {
2222

2323
public protocol SDKRegistryExtension: Sendable {
2424
var supportedSDKCanonicalNameSuffixes: Set<String> { get }
25-
func additionalKnownFrameworkDirectories(for sdkCanonicalName: String, sdkPath: Path) -> [Path]
2625

2726
func additionalSDKs(platformRegistry: PlatformRegistry) async -> [(path: Path, platform: Platform?, data: [String: PropertyListItem])]
2827
}
@@ -32,10 +31,6 @@ extension SDKRegistryExtension {
3231
[]
3332
}
3433

35-
public func additionalKnownFrameworkDirectories(for sdkCanonicalName: String, sdkPath: Path) -> [Path] {
36-
[]
37-
}
38-
3934
public func additionalSDKs(platformRegistry: PlatformRegistry) async -> [(path: Path, platform: Platform?, data: [String: PropertyListItem])] {
4035
[]
4136
}

Sources/SWBCore/MissingFrameworkDiagnostics.swift

-143
This file was deleted.

0 commit comments

Comments
 (0)