Skip to content

Commit f19437b

Browse files
authored
Check if swiftc exists at path in bootstrap (#2760)
1 parent 3f55ea6 commit f19437b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Utilities/bootstrap

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ def get_swiftc_path(args):
203203
if os.path.basename(swiftc_path) == 'swift':
204204
swiftc_path = swiftc_path + 'c'
205205

206-
return swiftc_path
206+
if os.path.exists(swiftc_path):
207+
return swiftc_path
208+
error("unable to find swiftc at %s" % swiftc_path)
207209

208210
def get_clang_path(args):
209211
"""Returns the path to the Clang compiler."""

0 commit comments

Comments
 (0)