Skip to content

Commit 4a8871f

Browse files
authored
Respect --build-runtime-with-host-compiler in wasmkit.py
1 parent 03dd520 commit 4a8871f

File tree

1 file changed

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

1 file changed

+5
-2
lines changed

utils/swift_build_support/swift_build_support/products/wasmkit.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@ def cli_file_path(cls, build_dir):
7474

7575

7676
def run_swift_build(host_target, product, swiftpm_package_product_name, set_installation_rpath=False):
77-
# Building with the freshly-built SwiftPM
78-
swift_build = os.path.join(product.install_toolchain_path(host_target), "bin", "swift-build")
77+
if product.args.build_runtime_with_host_compiler:
78+
swift_build = product.toolchain.swift_build
79+
else:
80+
# Building with the freshly-built SwiftPM
81+
swift_build = os.path.join(product.install_toolchain_path(host_target), "bin", "swift-build")
7982

8083
if host_target.startswith('macos'):
8184
# Universal binary on macOS

0 commit comments

Comments
 (0)