@@ -1053,6 +1053,8 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
10531053 2 = full debug info with variable and type information") ,
10541054 opt_level: Option <String > = ( None , parse_opt_string, [ TRACKED ] ,
10551055 "optimize with possible levels 0-3, s, or z" ) ,
1056+ force_frame_pointers: Option <bool > = ( None , parse_opt_bool, [ TRACKED ] ,
1057+ "force use of the frame pointers" ) ,
10561058 debug_assertions: Option <bool > = ( None , parse_opt_bool, [ TRACKED ] ,
10571059 "explicitly enable the cfg(debug_assertions) directive" ) ,
10581060 inline_threshold: Option <usize > = ( None , parse_opt_uint, [ TRACKED ] ,
@@ -2965,6 +2967,10 @@ mod tests {
29652967 opts. cg . debuginfo = Some ( 0xba5eba11 ) ;
29662968 assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
29672969
2970+ opts = reference. clone ( ) ;
2971+ opts. cg . force_frame_pointers = Some ( false ) ;
2972+ assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
2973+
29682974 opts = reference. clone ( ) ;
29692975 opts. cg . debug_assertions = Some ( true ) ;
29702976 assert ! ( reference. dep_tracking_hash( ) != opts. dep_tracking_hash( ) ) ;
0 commit comments