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

Function portable_aot_target

xtask/src/main.rs:503–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

501
502#[cfg(feature = "aot-serializer")]
503fn portable_aot_target() -> wasmer_types::target::Target {
504 use wasmer_types::target::{Architecture, CpuFeature, Target, Triple};
505
506 let triple = Triple::host();
507 let mut cpu_features = CpuFeature::set();
508 match triple.architecture {
509 Architecture::X86_64 => {
510 cpu_features.insert(CpuFeature::SSE2);
511 }
512 Architecture::Aarch64(_) => {
513 cpu_features.insert(CpuFeature::NEON);
514 }
515 _ => {}
516 }
517
518 Target::new(triple, cpu_features)
519}
520
521#[cfg(feature = "aot-serializer")]
522fn print_aot_engine_config(engine: &wasmer::Engine) {

Callers 2

llvm_aot_engineFunction · 0.85
print_aot_engine_configFunction · 0.85

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected