Cfg disable JIT code on systems where it is not supported (#29208)

Cfg disable JIT code on systems where it is not supported.
This commit is contained in:
Alexander Meißner 2022-12-12 15:29:38 +01:00 committed by GitHub
parent 013f784e92
commit 025b35af40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ fn create_executor_from_bytes(
})?;
verify_code_time.stop();
create_executor_metrics.verify_code_us = verify_code_time.as_us();
#[cfg(all(not(target_os = "windows"), target_arch = "x86_64"))]
if use_jit {
let mut jit_compile_time = Measure::start("jit_compile_time");
let jit_compile_result = verified_executable.jit_compile();