diff options
author | Colin Cross <ccross@android.com> | 2014-07-09 22:14:12 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-07-09 23:08:03 -0700 |
commit | 44a3c1914032dc97aab152c83929e97ad41fb538 (patch) | |
tree | 5e52be9ed4e1a7baa3a0ad7734df19b7b11e9984 /Android.mk | |
parent | 62526c377fe5242a723f154a373eccf5b9db416d (diff) | |
download | art-44a3c1914032dc97aab152c83929e97ad41fb538.zip art-44a3c1914032dc97aab152c83929e97ad41fb538.tar.gz art-44a3c1914032dc97aab152c83929e97ad41fb538.tar.bz2 |
art: fix host dex2oat runtime args
The runtime arguments need to be prefixed with -Xmx or -Xms.
This only worked before because DEX2OAT_XMS, etc. were blank
due to bugs in build/, which resulted in --runtime-arg --runtime-arg
and anything starting with -- as the argument to --runtime-arg is
silently ignored.
Change-Id: I18607a6fd8d0004466404045f8dc4495eb6ab275
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -324,7 +324,7 @@ oat-target-$(1): $$(OUT_OAT_FILE) $$(OUT_OAT_FILE): $(PRODUCT_OUT)/$(1) $(DEFAULT_DEX_PREOPT_BUILT_IMAGE) $(DEX2OATD_DEPENDENCY) @mkdir -p $$(dir $$@) - $(DEX2OATD) --runtime-arg $(DEX2OAT_XMS) --runtime-arg $(DEX2OAT_XMX) \ + $(DEX2OATD) --runtime-arg -Xms$(DEX2OAT_XMS) --runtime-arg -Xmx$(DEX2OAT_XMX) \ --boot-image=$(DEFAULT_DEX_PREOPT_BUILT_IMAGE) --dex-file=$(PRODUCT_OUT)/$(1) \ --dex-location=/$(1) --oat-file=$$@ \ --instruction-set=$(DEX2OAT_TARGET_ARCH) \ |