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

Method cranelift_flag_set

crates/wasmtime/src/config.rs:1567–1572  ·  view source on GitHub ↗
(&mut self, name: &str, value: &str)

Source from the content-addressed store, hash-verified

1565 /// Panics if this configuration's compiler was [disabled][Config::enable_compiler].
1566 #[cfg(any(feature = "cranelift", feature = "winch"))]
1567 pub unsafe fn cranelift_flag_set(&mut self, name: &str, value: &str) -> &mut Self {
1568 self.compiler_config_mut()
1569 .settings
1570 .insert(name.to_string(), value.to_string());
1571 self
1572 }
1573
1574 /// Set a custom [`Cache`].
1575 ///

Calls 3

compiler_config_mutMethod · 0.80
insertMethod · 0.45
to_stringMethod · 0.45

Tested by 2

mixed_forcedFunction · 0.36