From ee28cc5deb68178d48ecc34aed2c352c59735128 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:21:34 +0100 Subject: [PATCH] chore: Run multitarget build in script/bundle This has a chance to speed up a build in case where e.g. we're single-threaded in aarch64 build; at that point the x86_64 codegen can take place. Also, MIR can probably be shared between the two architectures, further reducing build time. --- script/bundle | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/script/bundle b/script/bundle index 69a2f165dc605fceb36a1d86be42b4c3a1305cee..a55ff714ce42ec8cd5683f91ec16e99e740db8c5 100755 --- a/script/bundle +++ b/script/bundle @@ -83,14 +83,8 @@ if [ "$local_arch" = true ]; then cargo build ${build_flag} --package zed cargo build ${build_flag} --package cli else - echo "Compiling zed binary for aarch64-apple-darwin" - cargo build ${build_flag} --package zed --target aarch64-apple-darwin - echo "Compiling zed binary for x86_64-apple-darwin" - cargo build ${build_flag} --package zed --target x86_64-apple-darwin - echo "Compiling cli binary for aarch64-apple-darwin" - cargo build ${build_flag} --package cli --target aarch64-apple-darwin - echo "Compiling cli binary for x86_64-apple-darwin" - cargo build ${build_flag} --package cli --target x86_64-apple-darwin + echo "Compiling zed binaries" + cargo build ${build_flag} --package zed --package cli --target aarch64-apple-darwin --target x86_64-apple-darwin fi echo "Creating application bundle"