Added DynamicFunc::new method for non x86 architectures

This commit is contained in:
Syrus
2020-04-16 12:52:31 -07:00
parent 51ed488b49
commit f222658dcb

View File

@ -344,6 +344,15 @@ impl<'a> DynamicFunc<'a> {
}
}
}
#[cfg(not(all(unix, target_arch = "x86_64")))]
pub fn new<F>(_signature: Arc<FuncSig>, _func: F) -> Self
where
F: Fn(&mut vm::Ctx, &[crate::types::Value]) -> Vec<crate::types::Value> + '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};