-
Notifications
You must be signed in to change notification settings - Fork 50
Implement exec
command
#22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here are some additional thoughts on this enhancement. First, the version selector can be optional, and then the toolchain that is in use would be chosen, where the used toolchain logic can be flexible, possibly consulting the At the expense of requiring the full toolchain command there are some additional features we can unlock. Here's what the build example above could look like:
But now you aren't restricted to just the
Or, you can invoke a command or even a shell script that makes use of any tool in the toolchain because it sets the toolchain at the beginning of the PATH:
And, if your project uses autoconf/cmake you can build it with the swift toolchain (clang, clang++) like this because exec sets the CC, CXX environment variables to the in-use toolchain:
|
This got implemented along with the proxy support in the form of a |
swiftly should have an
exec
command which allows a user to run a specificswift
command without having to switch the active toolchain.e.g.
Would run
swift build
using the latest 5.5 toolchain.The text was updated successfully, but these errors were encountered: