Skip to content

Commit 49cfd38

Browse files
committed
Limit disabling to Windows
1 parent 8aef288 commit 49cfd38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SWBTaskExecution/BuildDescriptionManager.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ package final class BuildDescriptionManager: Sendable {
177177
/// - Returns: A build description, or nil if cancelled.
178178
// TODO: Optimizations are disabled to work around a compiler bug. Remove this attribute when the bug is fixed.
179179
// See https://github.com/swiftlang/llvm-project/issues/11377 for details.
180+
#if os(Windows)
180181
@_optimize(none)
182+
#endif
181183
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? {
182184
BuildDescriptionManager.descriptionsComputed.increment()
183185

0 commit comments

Comments
 (0)