@@ -1082,6 +1082,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
1082
1082
"gather borrowck statistics" ) ,
1083
1083
no_landing_pads: bool = ( false , parse_bool, [ TRACKED ] ,
1084
1084
"omit landing pads for unwinding" ) ,
1085
+ fewer_names: bool = ( false , parse_bool, [ TRACKED ] ,
1086
+ "reduce memory use by retaining fewer names within compilation artifacts (LLVM-IR)" ) ,
1085
1087
debug_llvm: bool = ( false , parse_bool, [ UNTRACKED ] ,
1086
1088
"enable debug output from LLVM" ) ,
1087
1089
meta_stats: bool = ( false , parse_bool, [ UNTRACKED ] ,
@@ -2813,6 +2815,10 @@ mod tests {
2813
2815
opts. debugging_opts . no_landing_pads = true ;
2814
2816
assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
2815
2817
2818
+ opts = reference. clone ( ) ;
2819
+ opts. debugging_opts . fewer_names = true ;
2820
+ assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
2821
+
2816
2822
opts = reference. clone ( ) ;
2817
2823
opts. debugging_opts . no_trans = true ;
2818
2824
assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
0 commit comments