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

Method codegen_flag

crates/fuzzing/src/generators/config.rs:801–809  ·  view source on GitHub ↗

Returns the codegen flag value, if any, for `name`.

(&self, name: &str)

Source from the content-addressed store, hash-verified

799
800 /// Returns the codegen flag value, if any, for `name`.
801 pub(crate) fn codegen_flag(&self, name: &str) -> Option<&str> {
802 self.codegen.flags().iter().find_map(|(n, value)| {
803 if n == name {
804 Some(value.as_str())
805 } else {
806 None
807 }
808 })
809 }
810
811 /// Helper method to handle some dependencies between various configuration
812 /// options. This is intended to be called whenever a `Config` is created or

Callers 2

wast_testFunction · 0.80
update_module_configMethod · 0.80

Calls 3

iterMethod · 0.45
flagsMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected