From 248f49d60e8e9bcfbee5987fe3c2db68c3d2e97e Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Fri, 23 Jun 2017 14:59:56 -0700 Subject: [PATCH] config/common: Disable dexpreopt debug info on user builds Test: lunch statix_cannon-user && m Change-Id: I9e4b4c9907b92fea764cf07e218541bb33937b3c Signed-off-by: Vaisakh Murali Reviewed-on: https://review.statixos.com/c/android_vendor_statix/+/13530 --- config/common.mk | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/config/common.mk b/config/common.mk index 23338a4f..b6d5d360 100644 --- a/config/common.mk +++ b/config/common.mk @@ -128,13 +128,17 @@ ART_BUILD_TARGET_DEBUG := false ART_BUILD_HOST_NDEBUG := false ART_BUILD_HOST_DEBUG := false -# Do not include art debug targets -PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false - -# Strip the local variable table and the local variable type table to reduce -# the size of the system image. This has no bearing on stack traces, but will -# leave less information available via JDWP. -PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true +# Flags +ifeq ($(TARGET_BUILD_VARIANT), user) + # Strip the local variable table and the local variable type table to reduce + # the size of the system image. This has no bearing on stack traces, but will + # leave less information available via JDWP. + PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true + # Disable dexpreopt debug info + WITH_DEXPREOPT_DEBUG_INFO := false + # Don't include art debug targets + PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false +endif # Enable whole-program R8 Java optimizations for SystemUI and system_server, # but also allow explicit overriding for testing and development.