Fix to use the default calling convention ... doesn't help.
This commit is contained in:
@@ -91,10 +91,11 @@ fn main() -> Result<(), MainError> {
|
||||
.render_colored(72, StandardStream::stdout(ColorChoice::Auto))
|
||||
.unwrap();
|
||||
|
||||
let isa = isa::lookup(Triple::host())?.finish(settings::Flags::new(settings::builder()))?;
|
||||
let platform = Triple::host();
|
||||
let isa = isa::lookup(platform.clone())?.finish(settings::Flags::new(settings::builder()))?;
|
||||
let object_builder = ObjectBuilder::new(isa, "example", default_libcall_names())?;
|
||||
let mut object_module = ObjectModule::new(object_builder);
|
||||
let rtfuns = RuntimeFunctions::new(&mut object_module)?;
|
||||
let rtfuns = RuntimeFunctions::new(&platform, &mut object_module)?;
|
||||
|
||||
let _compiled = lil_tree.into_cranelift(&mut object_module, &rtfuns)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user