diff options
author | Sebastian Schmidt <yath@yath.de> | 2012-07-15 15:25:49 +0200 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-06 16:11:59 -0700 |
commit | d36495babbe164933bc9c0756ef122fdbb053450 (patch) | |
tree | 7597d88d894e00f4fce55e1dd690ca53a5a55484 | |
parent | fc56722f4df4f85a26537bcb493ebfece13b8269 (diff) | |
download | build-d36495babbe164933bc9c0756ef122fdbb053450.zip build-d36495babbe164933bc9c0756ef122fdbb053450.tar.gz build-d36495babbe164933bc9c0756ef122fdbb053450.tar.bz2 |
Use less heap space for dex on 32-bit build hosts
Run dex with -JXmx1024M instead of 2048M if running on a 32-bit host.
Surprisingly this appears to also work for framework and services; if
not, a little fine-tuning will be needed.
This does not change anything for non-32-bit hosts.
Change-Id: I1d87c3e394acc934af6f7770ea54ba265a1df838
-rw-r--r-- | core/definitions.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/definitions.mk b/core/definitions.mk index 1d04252..cd7f4db 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -1948,7 +1948,7 @@ define transform-classes.jar-to-dex @mkdir -p $(dir $@) $(hide) rm -f $(dir $@)classes*.dex $(hide) $(DX) \ - $(if $(findstring windows,$(HOST_OS)),,-JXms16M -JXmx2048M) \ + $(if $(findstring windows,$(HOST_OS)),,-JXms16M -JXmx$(if $(call streq,$(HOST_BITS),32),1024,2048)M) \ --dex --output=$(dir $@) \ $(if $(NO_OPTIMIZE_DX), \ --no-optimize) \ |