Merge pull request #1132 from Uriopass/master

Don't set RUSTFLAGS when no specific linker is needed
This commit is contained in:
bjorn3 2021-01-30 16:31:48 +01:00 committed by GitHub
commit 6a739b3ae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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