From 025b35af40460146c4616c7b218c307ca00fa15b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Mon, 12 Dec 2022 15:29:38 +0100 Subject: [PATCH] Cfg disable JIT code on systems where it is not supported (#29208) Cfg disable JIT code on systems where it is not supported. --- programs/bpf_loader/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/bpf_loader/src/lib.rs b/programs/bpf_loader/src/lib.rs index b97b00289e..53a205f5a7 100644 --- a/programs/bpf_loader/src/lib.rs +++ b/programs/bpf_loader/src/lib.rs @@ -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();