From 4c39d46af4206be223dbd78b3193ea2ca21a3ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=AA=E3=83=B3=E8=A6=AA=E8=A1=9B?= =?UTF-8?q?=E9=9A=8A?= Date: Sun, 4 Feb 2024 02:08:14 +0900 Subject: [PATCH] Update build.sh --- build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index c413e8f..032f315 100644 --- a/build.sh +++ b/build.sh @@ -1,7 +1,9 @@ -if [ &TARGETARCH = "arm64" ]; then - CC_aarch64_unknown_linux_musl=clang; - AR_aarch64_unknown_linux_musl=llvm-ar; - CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-Clink-self-contained=yes -Clinker=rust-lld"; +if [[ &TARGETARCH = "arm64" ]]; then + CC_aarch64_unknown_linux_musl=clang + AR_aarch64_unknown_linux_musl=llvm-ar + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-Clink-self-contained=yes -Clinker=rust-lld" +else + echo "amd64 mode" fi cargo build --target=$(cat /tmp/arch)-unknown-linux-musl --release cp target/$(cat /tmp/arch)-unknown-linux-musl/release/expander /tmp/expander