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
Merged-In: I28b38c08ad570d53dc679f9b42975545d457416e
Change-Id: I28b38c08ad570d53dc679f9b42975545d457416e
(cherry picked from commit e245e00d7b)
This commit is contained in:
Ulya Trafimovich 2021-01-11 16:42:21 +00:00 committed by Anton Hansson
parent 04a80cd736
commit c8e4513fb0

View file

@ -1,7 +1,7 @@
DEX_PREOPT_CONFIG := $(SOONG_OUT_DIR)/dexpreopt.config
# 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>'.