Disable PIC when jitting

This fixes jitting on non-x86_64 targets.
This commit is contained in:
bjorn3 2025-03-06 15:02:29 +00:00
parent 15fff5d2d2
commit 2133fb94b7
4 changed files with 6 additions and 8 deletions

View file

@ -325,10 +325,8 @@ impl<'a> TestRunner<'a> {
target_compiler.rustflags.extend(rustflags_from_env("RUSTFLAGS"));
target_compiler.rustdocflags.extend(rustflags_from_env("RUSTDOCFLAGS"));
let jit_supported = use_unstable_features
&& is_native
&& target_compiler.triple.contains("x86_64")
&& !target_compiler.triple.contains("windows");
let jit_supported =
use_unstable_features && is_native && !target_compiler.triple.contains("windows");
Self { is_native, jit_supported, skip_tests, dirs, target_compiler, stdlib_source }
}