diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2022-10-08 14:37:19 -0400 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2022-10-08 14:37:19 -0400 |
| commit | 23a1a868350fb8cea1db26b68035e07144d041b0 (patch) | |
| tree | 09b0b8daaa95365febc09773a6f0b82a942dcfae | |
| parent | 235414efaeea5f2cb14eb417f2b5caddb6211168 (diff) | |
| download | rust-23a1a868350fb8cea1db26b68035e07144d041b0.tar.gz rust-23a1a868350fb8cea1db26b68035e07144d041b0.zip | |
More debug options
| -rw-r--r-- | src/base.rs | 3 |
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"); } |
