From 040be70f3b27ad7e533bd762a08f884c35651fbc Mon Sep 17 00:00:00 2001 From: NikitaShyrei Date: Mon, 26 Feb 2024 16:36:26 +0100 Subject: [PATCH] - added target check --- src/bootstrap/src/core/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/src/core/builder.rs b/src/bootstrap/src/core/builder.rs index 0ec5e16de1da5..11942a1151d6a 100644 --- a/src/bootstrap/src/core/builder.rs +++ b/src/bootstrap/src/core/builder.rs @@ -1918,7 +1918,7 @@ impl<'a> Builder<'a> { rustflags.arg("-Wrustc::internal"); } - if self.config.rust_frame_pointers { + if self.config.rust_frame_pointers && target != "x86_64-fortanix-unknown-sgx" { rustflags.arg("-Cforce-frame-pointers=true"); }