mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
dont set rustflags when no specific linker needed
This commit is contained in:
parent
ae6daf77ba
commit
3eb649c631
@ -44,7 +44,11 @@ fi
|
||||
dir=$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)
|
||||
|
||||
export RUSTC=$dir"/bin/cg_clif"
|
||||
export RUSTFLAGS=$linker" "$RUSTFLAGS
|
||||
|
||||
if [ ! -z $linker ]; then
|
||||
export RUSTFLAGS=$linker" "$RUSTFLAGS
|
||||
fi
|
||||
|
||||
export RUSTDOCFLAGS=$linker' -Cpanic=abort -Zpanic-abort-tests '\
|
||||
'-Zcodegen-backend='$dir'/lib/librustc_codegen_cranelift.'$dylib_ext' --sysroot '$dir
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user