forked from openkylin/platform_build
Merge "Add a product property for changing the default compiler filter"
This commit is contained in:
commit
60431c098e
|
@ -224,6 +224,12 @@ ifeq (,$(my_system_server_compiler_filter))
|
|||
my_system_server_compiler_filter := speed
|
||||
endif
|
||||
|
||||
my_default_compiler_filter := $(PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER)
|
||||
ifeq (,$(my_default_compiler_filter))
|
||||
# If no default compiler filter is specified, default to 'quicken' to save on storage.
|
||||
my_default_compiler_filter := quicken
|
||||
endif
|
||||
|
||||
ifeq (,$(filter --compiler-filter=%, $(LOCAL_DEX_PREOPT_FLAGS)))
|
||||
ifneq (,$(filter $(PRODUCT_SYSTEM_SERVER_JARS),$(LOCAL_MODULE)))
|
||||
# Jars of system server, use the product option if it is set, speed otherwise.
|
||||
|
@ -238,8 +244,7 @@ ifeq (,$(filter --compiler-filter=%, $(LOCAL_DEX_PREOPT_FLAGS)))
|
|||
# For non system server jars, use speed-profile when we have a profile.
|
||||
LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=speed-profile
|
||||
else
|
||||
# If no compiler filter is specified, default to 'quicken' to save on storage.
|
||||
LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=quicken
|
||||
LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=$(my_default_compiler_filter)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
|
@ -129,6 +129,7 @@ _product_var_list := \
|
|||
PRODUCT_PRODUCT_VERITY_PARTITION \
|
||||
PRODUCT_SYSTEM_SERVER_DEBUG_INFO \
|
||||
PRODUCT_DEX_PREOPT_MODULE_CONFIGS \
|
||||
PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER \
|
||||
PRODUCT_DEX_PREOPT_DEFAULT_FLAGS \
|
||||
PRODUCT_DEX_PREOPT_BOOT_FLAGS \
|
||||
PRODUCT_DEX_PREOPT_PROFILE_DIR \
|
||||
|
|
|
@ -392,6 +392,8 @@ PRODUCT_OTA_PUBLIC_KEYS := $(sort \
|
|||
PRODUCT_EXTRA_RECOVERY_KEYS := $(sort \
|
||||
$(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_EXTRA_RECOVERY_KEYS))
|
||||
|
||||
PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER := \
|
||||
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER))
|
||||
PRODUCT_DEX_PREOPT_DEFAULT_FLAGS := \
|
||||
$(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_DEX_PREOPT_DEFAULT_FLAGS))
|
||||
PRODUCT_DEX_PREOPT_BOOT_FLAGS := \
|
||||
|
|
Loading…
Reference in New Issue