From cf405a1bedee124380aab8a47646f260eeb04574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Wed, 11 Oct 2023 19:50:20 +0200 Subject: [PATCH 1/2] Makes error type in declare_builtin_function!() parametric. --- src/program.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/program.rs b/src/program.rs index fd74c98c..a16f32fe 100644 --- a/src/program.rs +++ b/src/program.rs @@ -296,7 +296,7 @@ macro_rules! declare_builtin_function { $arg_d:ident : u64, $arg_e:ident : u64, $memory_mapping:ident : &mut $MemoryMapping:ty, - ) -> Result> $rust:tt) => { + ) -> Result $rust:tt) => { $(#[$attr])* pub struct $name {} impl $name { @@ -309,7 +309,7 @@ macro_rules! declare_builtin_function { $arg_d: u64, $arg_e: u64, $memory_mapping: &mut $MemoryMapping, - ) -> Result> { + ) -> Result { $rust } /// VM interface From 4820aba6755af000d56afdd80c346eff5f544937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Wed, 11 Oct 2023 19:50:36 +0200 Subject: [PATCH 2/2] Enables JIT option regardless of feature in CLI. --- cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index 30c8e2ca..cded744a 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -131,7 +131,7 @@ fn main() { memory } }; - #[cfg(all(feature = "jit", not(target_os = "windows"), target_arch = "x86_64"))] + #[cfg(all(not(target_os = "windows"), target_arch = "x86_64"))] if matches.value_of("use") == Some("jit") { executable.jit_compile().unwrap(); }