MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / with_host_isa

Method with_host_isa

cranelift/filetests/src/function_runner.rs:129–135  ·  view source on GitHub ↗

Build a [TestFileCompiler] using the host machine's ISA and the passed flags.

(flags: settings::Flags)

Source from the content-addressed store, hash-verified

127
128 /// Build a [TestFileCompiler] using the host machine's ISA and the passed flags.
129 pub fn with_host_isa(flags: settings::Flags) -> Result<Self> {
130 let builder = builder_with_options(true)
131 .map_err(anyhow::Error::msg)
132 .context("Unable to build a TargetIsa for the current host")?;
133 let isa = builder.finish(flags)?;
134 Ok(Self::new(isa))
135 }
136
137 /// Build a [TestFileCompiler] using the host machine's ISA and the default flags for this
138 /// ISA.

Callers

nothing calls this directly

Calls 5

builder_with_optionsFunction · 0.85
OkFunction · 0.85
newFunction · 0.50
contextMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected