From 17ea3419500d5b3ab109eb6e1a33132364734e5c Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 21 Feb 2019 15:04:37 -0800 Subject: [PATCH] Use flags from Soong for d8 and r8 Use the flags provided by Soong when running d8 and r8. Bug: 119270658 Test: m checkbuild Change-Id: I9459ded386effc27c4c96f1e94f9ea2f8ed19319 --- core/definitions.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/definitions.mk b/core/definitions.mk index c97f647f87..ca978dac22 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2225,7 +2225,7 @@ define transform-classes.jar-to-dex @mkdir -p $(dir $@) $(hide) rm -f $(dir $@)classes*.dex $(dir $@)d8_input.jar $(hide) $(ZIP2ZIP) -j -i $< -o $(dir $@)d8_input.jar "**/*.class" -$(hide) $(DX_COMMAND) \ +$(hide) $(DX_COMMAND) $(DEX_FLAGS) \ --output $(dir $@) \ $(addprefix --lib ,$(PRIVATE_D8_LIBS)) \ --min-api $(PRIVATE_MIN_SDK_VERSION) \ @@ -2697,7 +2697,8 @@ endif define transform-jar-to-dex-r8 @echo R8: $@ $(hide) rm -f $(PRIVATE_PROGUARD_DICTIONARY) -$(hide) $(R8_COMPAT_PROGUARD) -injars '$<' \ +$(hide) $(R8_COMPAT_PROGUARD) $(DEX_FLAGS) \ + -injars '$<' \ --min-api $(PRIVATE_MIN_SDK_VERSION) \ --no-data-resources \ --force-proguard-compatibility --output $(subst classes.dex,,$@) \