mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-04 11:48:38 +00:00
Add --enable-verifier to the wasmer command line. Wire it through CompilerConfig.
This commit is contained in:
@@ -184,6 +184,11 @@ impl CompilerConfig for LLVM {
|
||||
self.is_pic = true;
|
||||
}
|
||||
|
||||
/// Whether to verify compiler IR.
|
||||
fn enable_verifier(&mut self) {
|
||||
self.enable_verifier = true;
|
||||
}
|
||||
|
||||
/// Transform it into the compiler.
|
||||
fn compiler(&self) -> Box<dyn Compiler + Send> {
|
||||
Box::new(LLVMCompiler::new(&self))
|
||||
|
||||
Reference in New Issue
Block a user