Skip to content

Commit 0637709

Browse files
author
David Koloski
committed
Set non-leaf frame pointers on Fuchsia targets
1 parent 982a58e commit 0637709

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_target/src/spec/base/fuchsia.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use crate::spec::{crt_objects, cvs, Cc, LinkOutputKind, LinkerFlavor, Lld, TargetOptions};
1+
use crate::spec::{
2+
crt_objects, cvs, Cc, FramePointer, LinkOutputKind, LinkerFlavor, Lld, TargetOptions,
3+
};
24

35
pub fn opts() -> TargetOptions {
46
// This mirrors the linker options provided by clang. We presume lld for
@@ -38,6 +40,7 @@ pub fn opts() -> TargetOptions {
3840
]),
3941
position_independent_executables: true,
4042
has_thread_local: true,
43+
frame_pointer: FramePointer::NonLeaf,
4144
..Default::default()
4245
}
4346
}

0 commit comments

Comments
 (0)