Skip to content

Commit f31fdba

Browse files
committed
Merge pull request #200 from wokalski/docs/SWIFT_EXEC-documentation
[docs] Added a note about SWIFT_EXEC in the README
2 parents 47cb588 + 0e96420 commit f31fdba

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ following options:
9090
* [llbuild](https://github.com/apple/swift-llbuild) cloned parallel to your SwiftPM clone
9191
* Possibly, [a more recent Swift snapshot](https://swift.org/download)
9292

93+
###Choosing Swift version
94+
95+
The `SWIFT_EXEC` environment variable specifies the `swiftc` executable path used by `swift build`. If it is not set, SPM will try to locate it:
96+
97+
1. In `swift-build`'s parent directory.
98+
2. (on OS X) by calling `xcrun --find swiftc`
99+
3. in PATH
100+
101+
93102
There is further development-oriented documentation in [Documentation/Internals](Documentation/Internals).
94103

95104

0 commit comments

Comments
 (0)