From 59ecd289dd9edc45dd4190b6c85ec681d3699763 Mon Sep 17 00:00:00 2001 From: Fabrice de Gans Date: Tue, 7 Oct 2025 11:02:21 -0400 Subject: [PATCH] Revert Disable optimization to work around a compiler bug (#807) The compiler bug has been fixed so the workaround is no longer necessary. Bug: swiftlang/llvm-project#11377 --- Sources/SWBTaskExecution/BuildDescriptionManager.swift | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Sources/SWBTaskExecution/BuildDescriptionManager.swift b/Sources/SWBTaskExecution/BuildDescriptionManager.swift index 133ea2f5..d0a2a29d 100644 --- a/Sources/SWBTaskExecution/BuildDescriptionManager.swift +++ b/Sources/SWBTaskExecution/BuildDescriptionManager.swift @@ -175,11 +175,6 @@ package final class BuildDescriptionManager: Sendable { /// NOTE: This is primarily accessible for performance testing purposes, actual clients should prefer to access via the cached methods. /// /// - Returns: A build description, or nil if cancelled. - // TODO: Optimizations are disabled to work around a compiler bug. Remove this attribute when the bug is fixed. - // See https://github.com/swiftlang/llvm-project/issues/11377 for details. - #if os(Windows) - @_optimize(none) - #endif package static func constructBuildDescription(_ plan: BuildPlan, planRequest: BuildPlanRequest, signature: BuildDescriptionSignature, inDirectory path: Path, fs: any FSProxy, bypassActualTasks: Bool = false, planningDiagnostics: [ConfiguredTarget?: [Diagnostic]], delegate: any BuildDescriptionConstructionDelegate) async throws -> BuildDescription? { BuildDescriptionManager.descriptionsComputed.increment()