Skip to content

Commit 7c9715f

Browse files
committed
fix: debug build
1 parent 4d6c6a7 commit 7c9715f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

immix

src/ast/compiler.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,14 @@ pub fn process_llvm_ir<'a>(
239239
));
240240
module.verify().unwrap();
241241
if op.debug {
242+
unsafe {
243+
immix::run_module_pass(
244+
module.as_mut_ptr() as _,
245+
op.optimization as _,
246+
op.debug as _,
247+
op.print_escape as _,
248+
);
249+
}
242250
// if debug, generate one obj file per file, or debug info will be lost
243251
tm.write_to_file(&module, inkwell::targets::FileType::Object, &o)
244252
.unwrap();

0 commit comments

Comments
 (0)