From ae1bcb209a010a23858ca37117a2d57464034aba Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Thu, 10 Jun 2021 10:46:00 +0200 Subject: [PATCH] Use -Cprefer-dynamic for all crates in jit mode --- scripts/cargo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cargo.sh b/scripts/cargo.sh index 1daa5a78f7bd..267b5d99a08d 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