Initialize DEX_PREOPT_DEFAULT based on global dexpreopt settings.

Bug: 177214554
Test: lunch cf_x86_phone-userdebug && m
Test: Ensure that `find out -name dexpreopt.config` lists before and
    after the fix are identical (for target cf_x86_phone-userdebug).
Test: TARGET_PRODUCT=mainline_modules_x86_64 \
    TARGET_BUILD_VARIANT=userdebug \
    build/soong/soong_ui.bash --make-mode UipbUtil
Change-Id: I28b38c08ad570d53dc679f9b42975545d457416e
This commit is contained in:
Ulya Trafimovich
2021-01-11 16:42:21 +00:00
parent 991fe0a7d5
commit e245e00d7b

View File

@@ -10,7 +10,7 @@ else ifeq (true,$(DISABLE_PREOPT))
endif
# The default value for LOCAL_DEX_PREOPT
DEX_PREOPT_DEFAULT ?= true
DEX_PREOPT_DEFAULT ?= $(ENABLE_PREOPT)
# The default filter for which files go into the system_other image (if it is
# being used). Note that each pattern p here matches both '/<p>' and /system/<p>'.