alexcrichton opened PR #2608 from tune-cpu-flags
to main
:
With
Module::{serialize,deserialize}
it should be possible to share
wasmtime modules across machines or CPUs. Serialization, however, embeds
a hash of all configuration values, including cranelift compilation
settings. By default wasmtime's selection of the native ISA would enable
ISA flags according to CPU features available on the host, but the same
CPU features may not be available across two machines.This commit adds a
Config::cranelift_clear_cpu_flags
method which
allows clearing the target-specific ISA flags that are automatically
inferred by default for the native CPU. Options can then be
incrementally built back up as-desired with tehcranelift_other_flag
method.
peterhuene submitted PR Review.
alexcrichton merged PR #2608.
Last updated: Nov 22 2024 at 17:03 UTC