1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#![allow(missing_docs)]

use cranelift_codegen;

pub fn builder() -> cranelift_codegen::isa::Builder {
    cranelift_native::builder().expect("host machine is not a supported target")
}

pub fn call_conv() -> cranelift_codegen::isa::CallConv {
    use target_lexicon::HOST;
    cranelift_codegen::isa::CallConv::triple_default(&HOST)
}

pub use cranelift_codegen::isa::lookup;