Skip to content

Commit 70acf6d

Browse files
committed
Migration to SwiftpM’s new boostrap script
1 parent d6346f4 commit 70acf6d

File tree

1 file changed

+7
-8
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+7
-8
lines changed

utils/swift_build_support/swift_build_support/products/swiftpm.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def run_bootstrap_script(self, action, host_target, additional_params=[]):
3333
self.source_dir, 'Utilities', 'bootstrap')
3434
toolchain_path = self.install_toolchain_path()
3535
swiftc = os.path.join(toolchain_path, "usr", "bin", "swiftc")
36-
sbt = os.path.join(toolchain_path, "usr", "bin", "swift-build-tool")
3736

3837
llbuild_src = os.path.join(os.path.dirname(self.source_dir), "llbuild")
3938

@@ -43,20 +42,20 @@ def run_bootstrap_script(self, action, host_target, additional_params=[]):
4342
llbuild_build_dir = os.path.join(
4443
build_root, '%s-%s' % ("llbuild", host_target))
4544

46-
helper_cmd = [script_path]
47-
48-
if action != "build":
49-
helper_cmd.append(action)
45+
helper_cmd = [script_path, action]
5046

5147
if self.is_release():
5248
helper_cmd.append("--release")
5349

5450
helper_cmd += [
55-
"--swiftc", swiftc,
56-
"--sbt", sbt,
57-
"--build", self.build_dir,
51+
"--swiftc-path", swiftc,
52+
"--clang-path", self.toolchain.cc,
53+
"--cmake-path", self.toolchain.cmake,
54+
"--ninja-path", self.toolchain.ninja,
55+
"--build-dir", self.build_dir,
5856
"--llbuild-source-dir", llbuild_src,
5957
"--llbuild-build-dir", llbuild_build_dir,
58+
"--verbose" # TESTING
6059
]
6160
helper_cmd.extend(additional_params)
6261

0 commit comments

Comments
 (0)