Skip to content

Commit ae1bcb2

Browse files
committed
Use -Cprefer-dynamic for all crates in jit mode
1 parent 84dd229 commit ae1bcb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/cargo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ cmd=$1
1010
shift || true
1111

1212
if [[ "$cmd" = "jit" ]]; then
13-
cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-args=mode=jit -Cprefer-dynamic
13+
RUSTFLAGS="-Cprefer-dynamic" cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-args=mode=jit
1414
elif [[ "$cmd" = "lazy-jit" ]]; then
15-
cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-args=mode=jit-lazy -Cprefer-dynamic
15+
RUSTFLAGS="-Cprefer-dynamic" cargo "+${TOOLCHAIN}" rustc "$@" -- -Cllvm-args=mode=jit-lazy
1616
else
1717
cargo "+${TOOLCHAIN}" "$cmd" "$@"
1818
fi

0 commit comments

Comments
 (0)