Skip to content

Commit 3eb649c

Browse files
committed
dont set rustflags when no specific linker needed
1 parent ae6daf7 commit 3eb649c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/config.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ fi
4444
dir=$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)
4545

4646
export RUSTC=$dir"/bin/cg_clif"
47-
export RUSTFLAGS=$linker" "$RUSTFLAGS
47+
48+
if [ ! -z $linker ]; then
49+
export RUSTFLAGS=$linker" "$RUSTFLAGS
50+
fi
51+
4852
export RUSTDOCFLAGS=$linker' -Cpanic=abort -Zpanic-abort-tests '\
4953
'-Zcodegen-backend='$dir'/lib/librustc_codegen_cranelift.'$dylib_ext' --sysroot '$dir
5054

0 commit comments

Comments
 (0)