Skip to content

Commit 23a1a86

Browse files
committed
More debug options
1 parent 235414e commit 23a1a86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/base.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_
126126
context.add_command_line_option("-fdata-sections");
127127
}
128128

129+
if env::var("CG_GCCJIT_DUMP_RTL").as_deref() == Ok("1") {
130+
context.add_command_line_option("-fdump-rtl-vregs");
131+
}
129132
if env::var("CG_GCCJIT_DUMP_TREE_ALL").as_deref() == Ok("1") {
130133
context.add_command_line_option("-fdump-tree-all");
131134
}

0 commit comments

Comments
 (0)