summaryrefslogtreecommitdiffstats
path: root/core/dex_preopt_libart.mk
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-10-06 14:53:59 +0100
committerNicolas Geoffray <ngeoffray@google.com>2014-10-07 08:30:18 +0000
commit75c08b2118945dec9b2f0c51f1e7e7ee8db58756 (patch)
tree2caa3c4ecfd8ab6ada1cff37abeb442639718c23 /core/dex_preopt_libart.mk
parent9979ae4370e7acd4b305fddeca3c24495214a0cf (diff)
downloadbuild-75c08b2118945dec9b2f0c51f1e7e7ee8db58756.zip
build-75c08b2118945dec9b2f0c51f1e7e7ee8db58756.tar.gz
build-75c08b2118945dec9b2f0c51f1e7e7ee8db58756.tar.bz2
Make which dex2oat version to use configurable.
Change-Id: Ic13cf6f9dfb117193a5101781945c501d138955c
Diffstat (limited to 'core/dex_preopt_libart.mk')
-rw-r--r--core/dex_preopt_libart.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/dex_preopt_libart.mk b/core/dex_preopt_libart.mk
index 5af2be2..0e17240 100644
--- a/core/dex_preopt_libart.mk
+++ b/core/dex_preopt_libart.mk
@@ -18,6 +18,13 @@ DEX2OATD_DEPENDENCY += $(DEX2OATD)
PRELOADED_CLASSES := frameworks/base/preloaded-classes
+# Default to debug version to help find bugs.
+# Set USE_DEX2OAT_DEBUG to false for only building non-debug versions.
+ifneq ($(USE_DEX2OAT_DEBUG), false)
+DEX2OAT = $(DEX2OATD)
+DEX2OAT_DEPENDECY = $(DEX2OATD_DEPENDENCY)
+endif
+
# start of image reserved address space
LIBART_IMG_HOST_BASE_ADDRESS := 0x60000000
LIBART_IMG_TARGET_BASE_ADDRESS := 0x70000000
@@ -82,7 +89,7 @@ endif
define dex2oat-one-file
$(hide) rm -f $(2)
$(hide) mkdir -p $(dir $(2))
-$(hide) $(DEX2OATD) \
+$(hide) $(DEX2OAT) \
--runtime-arg -Xms$(DEX2OAT_XMS) --runtime-arg -Xmx$(DEX2OAT_XMX) \
--boot-image=$(PRIVATE_DEX_PREOPT_IMAGE_LOCATION) \
--dex-file=$(1) \