File tree 1 file changed +3
-3
lines changed
compiler/rustc_codegen_cranelift/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -271,9 +271,9 @@ fn build_isa(sess: &Session, backend_config: &BackendConfig) -> Arc<dyn TargetIs
271
271
flags_builder. set ( "enable_verifier" , enable_verifier) . unwrap ( ) ;
272
272
flags_builder. set ( "regalloc_checker" , enable_verifier) . unwrap ( ) ;
273
273
274
- let preserve_frame_pointer = sess. target . options . frame_pointer
275
- != rustc_target :: spec :: FramePointer :: MayOmit
276
- || matches ! ( sess . opts . cg . force_frame_pointers , Some ( true ) ) ;
274
+ let mut frame_ptr = sess. target . options . frame_pointer . clone ( ) ;
275
+ frame_ptr . ratchet ( sess . opts . cg . force_frame_pointers ) ;
276
+ let preserve_frame_pointer = frame_ptr != rustc_target :: spec :: FramePointer :: MayOmit ;
277
277
flags_builder
278
278
. set ( "preserve_frame_pointers" , if preserve_frame_pointer { "true" } else { "false" } )
279
279
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments