-
Notifications
You must be signed in to change notification settings - Fork 216
Add section to README about testing with toolchains #341
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
Add section to README about testing with toolchains #341
Conversation
README.md
Outdated
|
|
||
| Building with the toolchain is easy, set the toolchain in xcode: Menu Bar > Xcode > Toolchains > select your toolchain | ||
|
|
||
| Running the driver requires setting the TOOLCHAINS evironment variable. This tells xcrun which toolchain to use, on darwin xcrun is used to find tools. This variable is the name of the toolchain and not the path (ex: `Swift Development Snapshot`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be worth mentioning here that TOOLCHAINS will only have an effect if:
- A tool's path hasn't been overridden using one of the SWIFT_DRIVER_*_EXEC environment variables, and
- The driver executable is not installed inside a toolchain
The second point is probably less common though so maybe isn't as important.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this is more for running the tests in Xcode, so the second point doesn’t really apply. But yeah I can add some more here. The frontend is probably the only tool that actually gets executed, but TOOLCHAINS is what I was using. It’s worth noting that the SWIFT_DRIVER_ environment variables override TOOLCHAINS.
owenv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
|
@swift-ci please test |
Co-authored-by: Owen Voorhees <owenvoorhees@gmail.com>
|
Looks like my bot permissions haven't gone through yet. Someone else want to kick this off for me. Thanks! |
|
@swift-ci please test |
No description provided.