Skip to content

Commit b14cb57

Browse files
authored
Merge pull request #807 from Steelskin/fabrice/workaround-disable-opt
Disable optimization to work around a compiler bug
2 parents 8e875b5 + 49cfd38 commit b14cb57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/SWBTaskExecution/BuildDescriptionManager.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ package final class BuildDescriptionManager: Sendable {
175175
/// NOTE: This is primarily accessible for performance testing purposes, actual clients should prefer to access via the cached methods.
176176
///
177177
/// - Returns: A build description, or nil if cancelled.
178+
// TODO: Optimizations are disabled to work around a compiler bug. Remove this attribute when the bug is fixed.
179+
// See https://github.com/swiftlang/llvm-project/issues/11377 for details.
180+
#if os(Windows)
181+
@_optimize(none)
182+
#endif
178183
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? {
179184
BuildDescriptionManager.descriptionsComputed.increment()
180185

0 commit comments

Comments
 (0)