]> git.lizzy.rs Git - rust.git/commitdiff
Don't overwrite RUSTFLAGS for cargo.sh
authorbjorn3 <bjorn3@users.noreply.github.com>
Wed, 4 Nov 2020 18:15:41 +0000 (19:15 +0100)
committerbjorn3 <bjorn3@users.noreply.github.com>
Fri, 6 Nov 2020 18:33:55 +0000 (19:33 +0100)
scripts/config.sh

index e0c722f7f1b8d2beb6f8fb5e89d8468b5d2b739e..f697b169de807b72df0ab64f949821c8d7bc6083 100644 (file)
@@ -42,7 +42,7 @@ fi
 dir=$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)
 
 export RUSTC=$dir"/cg_clif"
-export RUSTFLAGS=$linker
+export RUSTFLAGS=$linker" "$RUSTFLAGS
 export RUSTDOCFLAGS=$linker' -Cpanic=abort -Zpanic-abort-tests '\
 '-Zcodegen-backend='$dir'/librustc_codegen_cranelift.'$dylib_ext' --sysroot '$dir'/sysroot'