This commit is contained in:
Folkert 2021-02-06 21:46:22 +01:00
parent 2d63e24843
commit 31fc62b7f0
6 changed files with 9 additions and 20 deletions

View file

@ -74,10 +74,8 @@ pub fn gen_from_mono_module(
}
// Generate the binary
let ptr_bytes = target.pointer_width().unwrap().bytes() as u32;
let context = Context::create();
let module = arena.alloc(module_from_builtins(&context, "app", ptr_bytes));
let module = arena.alloc(module_from_builtins(&context, "app"));
// strip Zig debug stuff
// module.strip_debug_info();
@ -96,6 +94,7 @@ pub fn gen_from_mono_module(
let (mpm, fpm) = roc_gen::llvm::build::construct_optimization_passes(module, opt_level);
// Compile and add all the Procs before adding main
let ptr_bytes = target.pointer_width().unwrap().bytes() as u32;
let env = roc_gen::llvm::build::Env {
arena: &arena,
builder: &builder,