Skip to content

Commit a2a67b3

Browse files
committed
Add more info to testing with custom toolchains section
1 parent bee95e2 commit a2a67b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ apple/swift-driver#208
102102
```
103103
@swift-ci cross-repository testing facilities are described [here](https://github.com/apple/swift/blob/main/docs/ContinuousIntegration.md#cross-repository-testing).
104104

105-
### Testing in XCode with custom toolchain
106-
After the toolchain is installed, xcode needs to be told to use it. This can mean two things, building the driver with the toolchain and telling the driver to use the toolchain when running.
105+
### Testing in Xcode with custom toolchain
106+
After the toolchain is installed, Xcode needs to be told to use it. This can mean two things, building the driver with the toolchain and telling the driver to use the toolchain when running.
107107

108-
Building with the toolchain is easy, set the toolchain in xcode: Menu Bar > Xcode > Toolchains > select your toolchain
108+
Building with the toolchain is easy, set the toolchain in Xcode: Menu Bar > Xcode > Toolchains > select your toolchain
109109

110-
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`)
110+
Running the driver requires setting the TOOLCHAINS environment 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`). Important note: xcrun is lower priority than SWIFT_EXEC_*_EXEC family of environment variables, tools directory, and for anything in the same directory as the driver (This includes a driver installed in a toolchain). Even though TOOLCHAINS is not highest priority it's a convenient one change for running the xctest suite against a custom toolchain.
111111

112112
#### Preparing a Linux docker for debug
113113

0 commit comments

Comments
 (0)