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

Commit e545d979 authored by Mathieu Chartier's avatar Mathieu Chartier Committed by Android (Google) Code Review
Browse files

Merge "Use speed-profile instead of quicken for the profile case"

parents 417e7cb1 c5536ffb
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -159,9 +159,14 @@ ifneq (,$(filter $(PRODUCT_SYSTEM_SERVER_JARS) $(PRODUCT_SYSTEM_SERVER_APPS),$(L
else
  # If no compiler filter is specified, default to 'quicken' to save on storage.
  ifeq (,$(filter --compiler-filter=%, $(LOCAL_DEX_PREOPT_FLAGS)))
    ifeq (true,$(LOCAL_DEX_PREOPT_GENERATE_PROFILE))
      # For non system server jars, use speed-profile when we have a profile.
      LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=speed-profile
    else
      LOCAL_DEX_PREOPT_FLAGS += --compiler-filter=quicken
    endif
  endif
endif

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