Make the default preopt 'interpret-only'.

bug:33799337
bug:36534079

Test: m -j32 bullhead/angler/marlin/sailfish

Change-Id: I30d9234334dbd520194993aa0e4603e2d415c603
(cherry picked from commit e0848c8b7f)
This commit is contained in:
Nicolas Geoffray
2017-03-30 13:50:12 +01:00
parent abcec5e0bf
commit 857d889950

View File

@@ -152,10 +152,15 @@ LOCAL_DEX_PREOPT_FLAGS := $(PRODUCT_DEX_PREOPT_DEFAULT_FLAGS)
endif endif
endif endif
# Jars of system server, and apps loaded into system server should be
# compiled with the 'speed' compiler filter.
ifneq (,$(filter $(PRODUCT_SYSTEM_SERVER_JARS) $(PRODUCT_SYSTEM_SERVER_APPS),$(LOCAL_MODULE))) ifneq (,$(filter $(PRODUCT_SYSTEM_SERVER_JARS) $(PRODUCT_SYSTEM_SERVER_APPS),$(LOCAL_MODULE)))
# Jars of system server, and apps loaded into system server should be
# compiled with the 'speed' compiler filter.
LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=speed LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=speed
else
# If no compiler filter is specified, default to 'interpret-only' to save on storage.
ifeq (,$(filter --compiler-filter=%, $(LOCAL_DEX_PREOPT_FLAGS)))
LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=interpret-only
endif
endif endif
$(built_odex): PRIVATE_DEX_PREOPT_FLAGS := $(LOCAL_DEX_PREOPT_FLAGS) $(built_odex): PRIVATE_DEX_PREOPT_FLAGS := $(LOCAL_DEX_PREOPT_FLAGS)