Don't preopt on eng builds.

It currently negatively affects some development workflows.

bug:25801231
Change-Id: Ib0476cdd9b4bbef80c6116ab8a5ae381bff047c0
This commit is contained in:
Nicolas Geoffray
2015-12-18 09:58:22 +00:00
parent c915b13a9c
commit 7effde0048

View File

@@ -21,9 +21,13 @@ DEX_PREOPT_DEFAULT ?= true
# The default values for pre-opting: always preopt PIC. # The default values for pre-opting: always preopt PIC.
# Conditional to building on linux, as dex2oat currently does not work on darwin. # Conditional to building on linux, as dex2oat currently does not work on darwin.
ifeq ($(HOST_OS),linux) # Conditional to building a non-eng build, as it currently negatively affects
WITH_DEXPREOPT_PIC ?= true # some development workflows.
WITH_DEXPREOPT ?= true ifneq ($(TARGET_BUILD_VARIANT),eng)
ifeq ($(HOST_OS),linux)
WITH_DEXPREOPT_PIC ?= true
WITH_DEXPREOPT ?= true
endif
endif endif
# $(1): the .jar or .apk to remove classes.dex # $(1): the .jar or .apk to remove classes.dex