Update spectest to include the opt level in the compile call.
@@ -5,6 +5,7 @@ use lucet;
use lucet::{UntypedRetval, Val};
use lucetc::{
compile,
+ compiler::OptLevel,
error::{LucetcError, LucetcErrorKind},
program::{HeapSettings, Program},
};
@@ -90,7 +91,11 @@ impl ScriptEnv {
let sofile_path = dir.path().join("a.so");
{
- let compiler = compile(&program, &name.clone().unwrap_or("default".to_owned()))
+ let compiler = compile(
+ &program,
+ &name.clone().unwrap_or("default".to_owned()),
+ OptLevel::Default,
+ )
.map_err(ScriptError::CompileError)?;
let object = compiler.codegen().map_err(ScriptError::CodegenError)?;
