Skip to content

Conversation

@cltnschlosser
Copy link
Contributor

No description provided.

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`)
Copy link
Contributor

@owenv owenv Nov 1, 2020

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:

  1. A tool's path hasn't been overridden using one of the SWIFT_DRIVER_*_EXEC environment variables, and
  2. The driver executable is not installed inside a toolchain

The second point is probably less common though so maybe isn't as important.

Copy link
Contributor Author

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.

Copy link
Contributor

@owenv owenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@cltnschlosser
Copy link
Contributor Author

@swift-ci please test

Co-authored-by: Owen Voorhees <owenvoorhees@gmail.com>
@cltnschlosser
Copy link
Contributor Author

Looks like my bot permissions haven't gone through yet. Someone else want to kick this off for me. Thanks!

@DougGregor
Copy link
Member

@swift-ci please test

@cltnschlosser cltnschlosser merged commit d7cca36 into swiftlang:main Nov 3, 2020
@cltnschlosser cltnschlosser deleted the cs_testingWithToolchains branch November 3, 2020 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants