Skip to content

Commit 5271bc2

Browse files
committed
Relax Swift tool check to find swiftc
The Swift-Driver build here only requires a working swiftc, not necessarily all of SPM. Relaxing the required tool check to accept building the driver if there's a Swift compiler available.
1 parent ada0ceb commit 5271bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/swift_build_support/swift_build_support/products/earlyswiftdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def should_build(self, host_target):
4545
return False
4646

4747
if self.args.build_early_swift_driver:
48-
if toolchain.host_toolchain().find_tool("swift") is None:
48+
if toolchain.host_toolchain().find_tool("swiftc") is None:
4949
warn_msg = 'Host toolchain could not locate a '\
5050
'compiler to build swift-driver. '\
5151
'(Try `--skip-early-swift-driver`)'

0 commit comments

Comments
 (0)