File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,10 @@ public final class UserToolchain: Toolchain {
121
121
// We require there is at least one valid swift compiler, either in the
122
122
// bin dir or SWIFT_EXEC.
123
123
let resolvedBinDirCompiler : AbsolutePath
124
- if let binDirCompiler = try ? UserToolchain . getTool ( " swiftc " , binDir: binDir) {
125
- resolvedBinDirCompiler = binDirCompiler
126
- } else if let SWIFT_EXEC = SWIFT_EXEC {
124
+ if let SWIFT_EXEC = SWIFT_EXEC {
127
125
resolvedBinDirCompiler = SWIFT_EXEC
126
+ } else if let binDirCompiler = try ? UserToolchain . getTool ( " swiftc " , binDir: binDir) {
127
+ resolvedBinDirCompiler = binDirCompiler
128
128
} else {
129
129
// Try to lookup swift compiler on the system which is possible when
130
130
// we're built outside of the Swift toolchain.
You can’t perform that action at this time.
0 commit comments