Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

Pacify type checker

Kabir Oberai468cd39ad0f1
diff --git a/Sources/PackLib/BuildSettings.swift b/Sources/PackLib/BuildSettings.swift
index 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
}
}