Skip to content

Commit

Permalink
disable precompilation
Browse files Browse the repository at this point in the history
Signed-off-by: Radu Matei <[email protected]>
  • Loading branch information
radu-matei committed Nov 19, 2024
1 parent e25bd7d commit 6c91229
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions containerd-shim-spin/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ impl Engine for SpinEngine {
}

fn can_precompile(&self) -> Option<String> {
let mut hasher = DefaultHasher::new();
self.wasmtime_engine
.precompile_compatibility_hash()
.hash(&mut hasher);
Some(hasher.finish().to_string())
// let mut hasher = DefaultHasher::new();
// self.wasmtime_engine
// .precompile_compatibility_hash()
// .hash(&mut hasher);
// Some(hasher.finish().to_string())
None
}
}

Expand Down Expand Up @@ -172,7 +173,7 @@ impl SpinEngine {
// Configure the loader to support loading AOT compiled components..
// Since all components were compiled by the shim (during `precompile`),
// this operation can be considered safe.
loader.enable_loading_aot_compiled_components();
// loader.enable_loading_aot_compiled_components();
},
// Currently, it is only possible to precompile applications distributed using
// `spin registry push`
Expand Down

0 comments on commit 6c91229

Please sign in to comment.