File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1621,6 +1621,17 @@ impl<'a> Builder<'a> {
1621
1621
SplitDebuginfo :: Off => rustflags. arg ( "-Csplit-debuginfo=off" ) ,
1622
1622
} ;
1623
1623
1624
+ // Decrease the amount of debuginfo we generate for `debuginfo_level = 1`.
1625
+ // See #64405 for context.
1626
+ // cfg(not(bootstrap))
1627
+ if compiler. stage > 0 {
1628
+ rustflags. arg ( "-Zforce-full-debuginfo=no" ) ;
1629
+ }
1630
+ // Decrease the size of the debuginfo we generate. zlib has incomplete support on some
1631
+ // platforms, but that's ok because `thorin` can read it and we don't ship debuginfo to
1632
+ // users.
1633
+ rustflags. arg ( "-Clink-args=-Wl,--compress-debug-sections=zlib" ) ;
1634
+
1624
1635
if self . config . cmd . bless ( ) {
1625
1636
// Bless `expect!` tests.
1626
1637
cargo. env ( "UPDATE_EXPECT" , "1" ) ;
You can’t perform that action at this time.
0 commit comments