From 595110fef621d1ad59d15f754b7a098eed1bfa9d Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Sat, 14 Jun 2025 17:30:19 +0100 Subject: [PATCH] Remove hard coded linux aarch64 linker --- .cargo/config.toml | 3 --- .github/workflows/build-rust.yml | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index a2440e46..02506bc8 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -6,6 +6,3 @@ tw = "test --features windows" tw86 = "test --target i686-pc-windows-msvc --features windows" bw = "build --features windows" bw86 = "build --target i686-pc-windows-msvc --features windows" - -[target.aarch64-unknown-linux-gnu] -linker = "aarch64-linux-gnu-gcc" \ No newline at end of file diff --git a/.github/workflows/build-rust.yml b/.github/workflows/build-rust.yml index 872ace81..f06113ca 100644 --- a/.github/workflows/build-rust.yml +++ b/.github/workflows/build-rust.yml @@ -108,6 +108,8 @@ jobs: cp ./target/x86_64-unknown-linux-gnu/release/libvelopack_libc.so ./artifacts/velopack_libc_linux_x64_gnu.so cp ./target/x86_64-unknown-linux-gnu/release/libvelopack_libc.a ./artifacts/velopack_libc_linux_x64_gnu.a - name: Build Rust (arm64) + env: + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc run: | cargo clean cargo build --release --target aarch64-unknown-linux-gnu -p velopack_nodeffi -p velopack_libc