diff --git a/Sources/SWBTaskExecution/BuildDescriptionManager.swift b/Sources/SWBTaskExecution/BuildDescriptionManager.swift index 248bca9e..c82ebf46 100644 --- a/Sources/SWBTaskExecution/BuildDescriptionManager.swift +++ b/Sources/SWBTaskExecution/BuildDescriptionManager.swift @@ -175,6 +175,11 @@ 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()