Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 1a151d20 authored by Dan Pasanen's avatar Dan Pasanen Committed by Michael Bestas
Browse files

build: don't dex preopt by default on linux

Change-Id: I7726cb87da576d1fcc59a4a3108e5a7ca2bf5304
parent b1014fd0
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -25,19 +25,19 @@ SYSTEM_OTHER_ODEX_FILTER ?= app/% priv-app/%

# The default values for pre-opting: always preopt PIC.
# Conditional to building on linux, as dex2oat currently does not work on darwin.
ifeq ($(HOST_OS),linux)
  WITH_DEXPREOPT_PIC ?= true
  WITH_DEXPREOPT ?= true
#ifeq ($(HOST_OS),linux)
#  WITH_DEXPREOPT_PIC ?= true
#  WITH_DEXPREOPT ?= true
# For an eng build only pre-opt the boot image. This gives reasonable performance and still
# allows a simple workflow: building in frameworks/base and syncing.
  ifeq (eng,$(TARGET_BUILD_VARIANT))
    WITH_DEXPREOPT_BOOT_IMG_ONLY ?= true
  endif
#  ifeq (eng,$(TARGET_BUILD_VARIANT))
#    WITH_DEXPREOPT_BOOT_IMG_ONLY ?= true
#  endif
# Add mini-debug-info to the boot classpath unless explicitly asked not to.
  ifneq (false,$(WITH_DEXPREOPT_DEBUG_INFO))
    PRODUCT_DEX_PREOPT_BOOT_FLAGS += --generate-mini-debug-info
  endif
endif
#  ifneq (false,$(WITH_DEXPREOPT_DEBUG_INFO))
#    PRODUCT_DEX_PREOPT_BOOT_FLAGS += --generate-mini-debug-info
#  endif
#endif

GLOBAL_DEXPREOPT_FLAGS :=
ifeq ($(WITH_DEXPREOPT_PIC),true)