Refactor Cache logic to include debug information (#2065)
* move caching to the CompilationArtifacts * mv cache_config from Compiler to CompiledModule * hash isa flags * no cache for wasm2obj * mv caching to wasmtime crate * account each Compiler field when hash
This commit is contained in:
@@ -5,7 +5,6 @@ use std::path::Path;
|
||||
use target_lexicon::Triple;
|
||||
use wasmtime::Strategy;
|
||||
use wasmtime_cli::compile_to_obj;
|
||||
use wasmtime_environ::CacheConfig;
|
||||
|
||||
pub fn compile_cranelift(
|
||||
wasm: &[u8],
|
||||
@@ -19,7 +18,6 @@ pub fn compile_cranelift(
|
||||
false,
|
||||
wasmtime::OptLevel::None,
|
||||
true,
|
||||
&CacheConfig::new_cache_disabled(),
|
||||
)?;
|
||||
|
||||
let mut file = File::create(output).context("failed to create object file")?;
|
||||
|
||||
Reference in New Issue
Block a user