MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / format_aot_cpu_features

Function format_aot_cpu_features

xtask/src/main.rs:538–550  ·  view source on GitHub ↗
(target: &wasmer_types::target::Target)

Source from the content-addressed store, hash-verified

536
537#[cfg(feature = "aot-serializer")]
538fn format_aot_cpu_features(target: &wasmer_types::target::Target) -> String {
539 let mut features = target
540 .cpu_features()
541 .iter()
542 .map(|feature| feature.to_string())
543 .collect::<Vec<_>>();
544 features.sort();
545 if features.is_empty() {
546 "none".to_owned()
547 } else {
548 features.join(",")
549 }
550}
551
552#[cfg(feature = "aot-serializer")]
553fn env_flag(name: &str) -> bool {

Callers

nothing calls this directly

Calls 2

iterMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected