Function
format_aot_cpu_features
(target: &wasmer_types::target::Target)
Source from the content-addressed store, hash-verified
| 536 | |
| 537 | #[cfg(feature = "aot-serializer")] |
| 538 | fn 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")] |
| 553 | fn env_flag(name: &str) -> bool { |
Callers
nothing calls this directly
Tested by
no test coverage detected