about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-06-10 10:46:00 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-06-10 11:18:59 +0200
commitae1bcb209a010a23858ca37117a2d57464034aba (patch)
treeef2971cd7cf6a85462e590a190ba2cb356426365
parent84dd22969f79da4a417b4c424a7095522d4b83c5 (diff)
downloadrust-ae1bcb209a010a23858ca37117a2d57464034aba.tar.gz
rust-ae1bcb209a010a23858ca37117a2d57464034aba.zip
Use -Cprefer-dynamic for all crates in jit mode
-rwxr-xr-xscripts/cargo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/cargo.sh b/scripts/cargo.sh
index 1daa5a78f7b..267b5d99a08 100755
--- a/scripts/cargo.sh
+++ b/scripts/cargo.sh
@@ -10,9 +10,9 @@ cmd=$1
 shift || true
 
 if [[ "$cmd" = "jit" ]]; then
-cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-args=mode=jit -Cprefer-dynamic
+RUSTFLAGS="-Cprefer-dynamic" cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-args=mode=jit
 elif [[ "$cmd" = "lazy-jit" ]]; then
-cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-args=mode=jit-lazy -Cprefer-dynamic
+RUSTFLAGS="-Cprefer-dynamic" cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-args=mode=jit-lazy
 else
 cargo "+${TOOLCHAIN}" "$cmd" "$@"
 fi