You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable host toolchain on macOS by default, improve README.md (#196)
It adds some documentation to help with common issues people run into. But primarily, this PR sets `--host-toolchain` on macOS by default, since most people are using Xcode and not the Swift OSS toolchain to run the generator and build using generated Swift SDKs.
---------
Co-authored-by: Max Desiatov <[email protected]>
Copy file name to clipboardExpand all lines: Sources/GeneratorCLI/GeneratorCLI.swift
+32-17Lines changed: 32 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ extension GeneratorCLI {
131
131
but requires exactly the same version of the swift.org toolchain to be installed for it to work.
132
132
"""
133
133
)
134
-
varhostToolchain:Bool=false
134
+
varhostToolchain:Bool=hostToolchainDefault
135
135
136
136
@Option(
137
137
help:"""
@@ -149,17 +149,31 @@ extension GeneratorCLI {
149
149
varhost:Triple?=nil
150
150
151
151
@Option(
152
-
help:"""
153
-
The target triple of the bundle. The default depends on a recipe used for SDK generation. Pass `--help` to a specific recipe subcommand for more details.
154
-
"""
152
+
help:
153
+
"The target triple of the bundle. The default depends on a recipe used for SDK generation."
155
154
)
156
155
vartarget:Triple?=nil
157
156
158
157
@Option(help:"Deprecated. Use `--host` instead")
159
158
varhostArch:Triple.Arch?=nil
160
-
@Option(help:"Deprecated. Use `--target` instead")
159
+
@Option(
160
+
help:"""
161
+
The target arch of the bundle. The default depends on a recipe used for SDK generation. \
162
+
If this is passed, the target triple will default to `<target-arch>-unknown-linux-gnu`. \
163
+
Use the `--target` param to pass the full target triple if needed.
164
+
"""
165
+
)
161
166
vartargetArch:Triple.Arch?=nil
162
167
168
+
/// Default to adding host toolchain when building on macOS
0 commit comments