Disable JIT on windows

This commit is contained in:
Afonso Bordado 2022-08-01 09:49:54 +01:00
parent 231f7c6a21
commit 46fa744e69

View File

@ -465,7 +465,7 @@ pub fn new(host_triple: String, target_triple: String) -> Self {
out_dir.push("out");
let is_native = host_triple == target_triple;
let jit_supported = target_triple.contains("x86_64") && is_native;
let jit_supported = target_triple.contains("x86_64") && is_native && !host_triple.contains("windows");
let mut rust_flags = env::var("RUSTFLAGS").ok().unwrap_or("".to_string());
let mut run_wrapper = Vec::new();