We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df46d2f commit eba9198Copy full SHA for eba9198
Sources/GeneratorCLI/GeneratorCLI.swift
@@ -125,7 +125,7 @@ extension GeneratorCLI {
125
but requires exactly the same version of the swift.org toolchain to be installed for it to work.
126
"""
127
)
128
- var hostToolchain: Bool = false
+ var hostToolchain: Bool = hostToolchainDefault
129
130
@Option(
131
help: """
@@ -154,6 +154,15 @@ extension GeneratorCLI {
154
@Option(help: "Deprecated. Use `--target` instead")
155
var targetArch: Triple.Arch? = nil
156
157
+ /// Default to adding host toolchain when building on macOS
158
+ static var hostToolchainDefault: Bool {
159
+ #if os(macOS)
160
+ true
161
+ #else
162
+ false
163
+ #endif
164
+ }
165
+
166
func deriveHostTriple() throws -> Triple {
167
if let host {
168
return host
0 commit comments