Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,14 @@ def cli_file_path(cls, build_dir):


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

if not os.path.exists(swift_build) or product.args.build_runtime_with_host_compiler:
print(
f"WARNING: build-script's {os.path.basename(__file__)} is running local development code path, "
"don't use these build artifacts for deployment!"
)
swift_build = product.toolchain.swift_build

if host_target.startswith('macos'):
# Universal binary on macOS
Expand Down