From 61f6c2b0bd3635fc13e8ab09fc9150f84eb4dfe7 Mon Sep 17 00:00:00 2001 From: Jochen Maes Date: Tue, 31 Oct 2023 06:59:12 +0100 Subject: [PATCH] removes linker from manifest and adds as env var Signed-off-by: Jochen Maes --- .drone.yml | 2 +- Cargo.toml | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 82d2ae1..4253fcf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,7 +25,7 @@ steps: - rustup target add x86_64-unknown-linux-musl - rustup target add aarch64-unknown-linux-musl - cargo build --target x86_64-unknown-linux-musl --bins -r --config 'package.version="${DRONE_TAG##v}"' - - cargo build --target aarch64-unknown-linux-musl --bins -r --config 'package.version="${DRONE_TAG##v}"' + - CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=/usr/bin/aarch64-none-elf-gcc cargo build --target aarch64-unknown-linux-musl --bins -r --config 'package.version="${DRONE_TAG##v}"' - cp target/x86_64-unknown-linux-musl/release/mouse /artifacts/mouse-amd64 - cp target/aarch64-unknown-linux-musl/release/mouse /artifacts/mouse-arm64 volumes: diff --git a/Cargo.toml b/Cargo.toml index ee3297e..cf61be2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,9 +8,6 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -[target.aarch64-unknown-linux-musl] -linker = "/usr/bin/aarch64-none-elf-gcc" - [dependencies] clap = { version = "4.4.7", features = ["derive"] } csv = "1.3.0"