summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2014-08-19 20:28:08 +0100
committerCalin Juravle <calin@google.com>2014-08-26 18:47:44 +0100
commit68b246401de6132861b12d28581628ccaa780ca9 (patch)
tree930ba18764de26ab6f102ec96d36785e6f63b8db /core
parentd61f0ffdfc13ce7b563015ea5fdd4513fb7c9d59 (diff)
downloadbuild-68b246401de6132861b12d28581628ccaa780ca9.zip
build-68b246401de6132861b12d28581628ccaa780ca9.tar.gz
build-68b246401de6132861b12d28581628ccaa780ca9.tar.bz2
Push ISA features into system properties
We need to know instruction set featues at runtime as well so that the apps get compiled on target with the proper features. The properties are read by installd and passed to dex2oat. Bug: 16716262 (cherry picked from commit 28be9d8884861f70fbd39b3768a6d4b34009deed) Change-Id: I45b363558dea17e9b049e4a83a55990b4911d9d8
Diffstat (limited to 'core')
-rw-r--r--core/main.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/main.mk b/core/main.mk
index 562c3ef..d719b38 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -312,6 +312,11 @@ ifneq ($(filter sdk win_sdk sdk_addon,$(MAKECMDGOALS)),)
is_sdk_build := true
endif
+ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.isa.$(TARGET_ARCH).features=$(DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES)
+ifdef TARGET_2ND_ARCH
+ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.isa.$(TARGET_2ND_ARCH).features=$($(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES)
+endif
+
## user/userdebug ##
user_variant := $(filter user userdebug,$(TARGET_BUILD_VARIANT))