diff --git a/lib/runtime-core/src/typed_func.rs b/lib/runtime-core/src/typed_func.rs index 3fa26604a..a6337bc58 100644 --- a/lib/runtime-core/src/typed_func.rs +++ b/lib/runtime-core/src/typed_func.rs @@ -344,6 +344,15 @@ impl<'a> DynamicFunc<'a> { } } } + + #[cfg(not(all(unix, target_arch = "x86_64")))] + pub fn new(_signature: Arc, _func: F) -> Self + where + F: Fn(&mut vm::Ctx, &[crate::types::Value]) -> Vec + 'static, + { + unimplemented!("The DynamicFunc::new is not yet implemented in your architecture."); + } + unsafe extern "C" fn enter_host_polymorphic_i( ctx: *const CallContext, args: *const u64, @@ -1015,6 +1024,7 @@ mod tests { }; } + #[cfg(all(unix, target_arch = "x86_64"))] #[test] fn test_many_new_dynamics() { use crate::types::{FuncSig, Type};