From 8ccbe4258e20b3eba808f672b0a07a178dcc01e5 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 21 May 2018 08:24:20 -0700 Subject: [PATCH] Libunwindstack: Add -O0 to tools defaults on host Extend the debug support from the host library to host tools. Test: mmma system/core/libunwindstack Change-Id: Ib6ea5f021d6b8139c545eaa2e6b1675befa4d3bd --- libunwindstack/Android.bp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libunwindstack/Android.bp b/libunwindstack/Android.bp index 82f2e7301..a6bf73073 100644 --- a/libunwindstack/Android.bp +++ b/libunwindstack/Android.bp @@ -220,6 +220,15 @@ cc_defaults { "libbase", "liblzma", ], + target: { + // Always disable optimizations for host to make it easier to debug. + host: { + cflags: [ + "-O0", + "-g", + ], + }, + }, } cc_binary {