Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e55bc87 authored by Nicolas Geoffray's avatar Nicolas Geoffray Committed by android-build-merger
Browse files

Merge "Make the default preopt 'interpret-only'." am: 078aafc5

am: 21715c25

Change-Id: I811fbf23e5101e5197e9711bd8648c52e8dda9e1
parents cf6d9f23 21715c25
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -152,10 +152,15 @@ LOCAL_DEX_PREOPT_FLAGS := $(PRODUCT_DEX_PREOPT_DEFAULT_FLAGS)
endif
endif

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.
ifneq (,$(filter $(PRODUCT_SYSTEM_SERVER_JARS) $(PRODUCT_SYSTEM_SERVER_APPS),$(LOCAL_MODULE)))
  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

$(built_odex): PRIVATE_DEX_PREOPT_FLAGS := $(LOCAL_DEX_PREOPT_FLAGS)