diff --git a/utils/swift_build_support/swift_build_support/products/swiftpm.py b/utils/swift_build_support/swift_build_support/products/swiftpm.py index 6c698d22b58bd..42a2ff914b4e6 100644 --- a/utils/swift_build_support/swift_build_support/products/swiftpm.py +++ b/utils/swift_build_support/swift_build_support/products/swiftpm.py @@ -48,7 +48,6 @@ def run_bootstrap_script(self, action, host_target, additional_params=[]): toolchain_path = self.native_toolchain_path(host_target) swiftc = os.path.join(toolchain_path, "bin", "swiftc") - clang = os.path.join(toolchain_path, "bin", "clang") # FIXME: We require llbuild build directory in order to build. Is # there a better way to get this? @@ -68,7 +67,7 @@ def run_bootstrap_script(self, action, host_target, additional_params=[]): helper_cmd += [ "--swiftc-path", swiftc, - "--clang-path", clang, + "--clang-path", self.toolchain.cc, "--cmake-path", self.toolchain.cmake, "--ninja-path", self.toolchain.ninja, "--build-dir", self.build_dir,