diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-10 10:46:00 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-06-10 11:18:59 +0200 |
| commit | ae1bcb209a010a23858ca37117a2d57464034aba (patch) | |
| tree | ef2971cd7cf6a85462e590a190ba2cb356426365 | |
| parent | 84dd22969f79da4a417b4c424a7095522d4b83c5 (diff) | |
| download | rust-ae1bcb209a010a23858ca37117a2d57464034aba.tar.gz rust-ae1bcb209a010a23858ca37117a2d57464034aba.zip | |
Use -Cprefer-dynamic for all crates in jit mode
| -rwxr-xr-x | scripts/cargo.sh | 4 |
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 |
