Skip to content

Commit f741bc2

Browse files
authored
Merge pull request #67328 from finagolfin/release/5.8
[5.8][build] Make sure SPM is built with the forked clang, not the host clang
2 parents f94f0a5 + de42300 commit f741bc2

File tree

1 file changed

+2
-1
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+2
-1
lines changed

utils/swift_build_support/swift_build_support/products/swiftpm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def run_bootstrap_script(self, action, host_target, additional_params=[]):
4848

4949
toolchain_path = self.native_toolchain_path(host_target)
5050
swiftc = os.path.join(toolchain_path, "bin", "swiftc")
51+
clang = os.path.join(toolchain_path, "bin", "clang")
5152

5253
# FIXME: We require llbuild build directory in order to build. Is
5354
# there a better way to get this?
@@ -67,7 +68,7 @@ def run_bootstrap_script(self, action, host_target, additional_params=[]):
6768

6869
helper_cmd += [
6970
"--swiftc-path", swiftc,
70-
"--clang-path", self.toolchain.cc,
71+
"--clang-path", clang,
7172
"--cmake-path", self.toolchain.cmake,
7273
"--ninja-path", self.toolchain.ninja,
7374
"--build-dir", self.build_dir,

0 commit comments

Comments
 (0)