Add --enable-verifier to the wasmer command line. Wire it through CompilerConfig.

This commit is contained in:
Nick Lewycky
2020-07-13 12:03:31 -07:00
parent 3e13e78959
commit 50e54f6be6
3 changed files with 34 additions and 9 deletions

View File

@@ -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))