Modern Apps git

← xtool.git

Pacify type checker

Commit
468cd39ad0f1d924436c986fd57c23523eb38232
Author
Kabir Oberai <[email protected]>
When
2025-04-23 21:28 UTC (1 year ago)
Parents
9ce80d1
Swift 6.1’s type checker couldn’t resolve the original expr in reasonable time yada yada

Diff

Sources/PackLib/BuildSettings.swift
diff --git a/Sources/PackLib/BuildSettings.swift b/Sources/PackLib/BuildSettings.swiftindex 8c960a1..e17c07b 100644--- a/Sources/PackLib/BuildSettings.swift+++ b/Sources/PackLib/BuildSettings.swift@@ -80,13 +80,15 @@ public struct BuildSettings: Sendable {             baseArguments = [tool]         } +        let extraArguments: [String] = [+            "--package-path", packagePathOverride ?? packagePath,+            "--configuration", configuration.rawValue,+        ]+         var env = ProcessInfo.processInfo.environment         env.removeValue(forKey: "SDKROOT")         process.environment = env-        process.arguments = baseArguments + [-            "--package-path", packagePathOverride ?? packagePath,-            "--configuration", configuration.rawValue,-        ] + sdkOptions + options + arguments+        process.arguments = baseArguments + extraArguments + sdkOptions + options + arguments         return process     } }