Add USE_D8_BY_DEFAULT in makefile.
Bug: 65854021
Test: m USE_D8=true showcommands out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/with-local/classes.dex
Change-Id: Iec1a05bf6f03cf856faf2e013fa169e1a0beaf7a
diff --git a/core/config.mk b/core/config.mk
index 34e9681..566faae 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -511,6 +511,12 @@
USE_PREBUILT_SDK_TOOLS_IN_PLACE := true
+# USE_D8_BY_DEFAULT is the default behavior, use USE_D8 to override.
+USE_D8_BY_DEFAULT := false
+ifndef USE_D8
+ USE_D8 := $(USE_D8_BY_DEFAULT)
+endif
+
#
# Tools that are prebuilts for TARGET_BUILD_APPS
#