From 0b5dce6dae76f4866550eb128edd598c4f9c6762 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 20 Aug 2024 15:06:00 +0000 Subject: [PATCH] Use -fno-omit-frame-pointer for host linux. Helps with debugging/profiling. Bug: http://b/245707217 Change-Id: I6b2d4f73edbdbcdc36b3bf531341dd2dfb51a87c --- cc/config/x86_linux_bionic_host.go | 2 ++ cc/config/x86_linux_host.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cc/config/x86_linux_bionic_host.go b/cc/config/x86_linux_bionic_host.go index 515cb2104..ddc86c299 100644 --- a/cc/config/x86_linux_bionic_host.go +++ b/cc/config/x86_linux_bionic_host.go @@ -25,6 +25,8 @@ var ( "-fPIC", + "-fno-omit-frame-pointer", + "-U_FORTIFY_SOURCE", "-D_FORTIFY_SOURCE=2", "-fstack-protector-strong", diff --git a/cc/config/x86_linux_host.go b/cc/config/x86_linux_host.go index 7f22377bf..287967c12 100644 --- a/cc/config/x86_linux_host.go +++ b/cc/config/x86_linux_host.go @@ -26,6 +26,8 @@ var ( "-fPIC", + "-fno-omit-frame-pointer", + "-U_FORTIFY_SOURCE", "-D_FORTIFY_SOURCE=2", "-fstack-protector",