From 13772c5a65851f768cf4f8f8082b2bd537ffa33d Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 19 Oct 2023 21:17:47 +0000 Subject: [PATCH] scripts: dev_cli.sh: respect preset RUSTFLAGS Signed-off-by: Wei Liu (cherry picked from commit 9d42f48f496426cd00fe69e6f9cef1e33e741441) --- scripts/dev_cli.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dev_cli.sh b/scripts/dev_cli.sh index 3777de4d3..b686e7ceb 100755 --- a/scripts/dev_cli.sh +++ b/scripts/dev_cli.sh @@ -277,10 +277,10 @@ cmd_build() { [ $build = "release" ] && cargo_args+=("--release") cargo_args+=(--target "$target") - rustflags="" + rustflags="$RUSTFLAGS" target_cc="" if [ "$(uname -m)" = "aarch64" ] && [ "$libc" = "musl" ]; then - rustflags="-C link-arg=-lgcc -C link_arg=-specs -C link_arg=/usr/lib/aarch64-linux-musl/musl-gcc.specs" + rustflags="$rustflags -C link-arg=-lgcc -C link_arg=-specs -C link_arg=/usr/lib/aarch64-linux-musl/musl-gcc.specs" target_cc="musl-gcc" fi