about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2022-10-08 14:37:19 -0400
committerAntoni Boucher <bouanto@zoho.com>2022-10-08 14:37:19 -0400
commit23a1a868350fb8cea1db26b68035e07144d041b0 (patch)
tree09b0b8daaa95365febc09773a6f0b82a942dcfae
parent235414efaeea5f2cb14eb417f2b5caddb6211168 (diff)
downloadrust-23a1a868350fb8cea1db26b68035e07144d041b0.tar.gz
rust-23a1a868350fb8cea1db26b68035e07144d041b0.zip
More debug options
-rw-r--r--src/base.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/base.rs b/src/base.rs
index b60382496c2..6e1ad9f5315 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -126,6 +126,9 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol, supports_
             context.add_command_line_option("-fdata-sections");
         }
 
+        if env::var("CG_GCCJIT_DUMP_RTL").as_deref() == Ok("1") {
+            context.add_command_line_option("-fdump-rtl-vregs");
+        }
         if env::var("CG_GCCJIT_DUMP_TREE_ALL").as_deref() == Ok("1") {
             context.add_command_line_option("-fdump-tree-all");
         }