summaryrefslogtreecommitdiffstats
path: root/build/Android.oat.mk
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-12-04 14:39:31 +0000
committerNicolas Geoffray <ngeoffray@google.com>2014-12-04 14:46:17 +0000
commit5d672a682637882743bab12c2c842f5c0ffb77c6 (patch)
treee545daa4a6825566290b164609f5d8cbec16114f /build/Android.oat.mk
parent875ca0fb97a8652920292ec0ecd5aaf54d2a3b2e (diff)
downloadart-5d672a682637882743bab12c2c842f5c0ffb77c6.zip
art-5d672a682637882743bab12c2c842f5c0ffb77c6.tar.gz
art-5d672a682637882743bab12c2c842f5c0ffb77c6.tar.bz2
Build core.oat without flags.
Existing tools (like vogar) assume only one boot image, so to test the boot image compiled with the optimizing compiler, we have to compile core.oat with it. Change-Id: I4b55236163333709b05c80eea18778ecd2b58a91
Diffstat (limited to 'build/Android.oat.mk')
-rw-r--r--build/Android.oat.mk18
1 files changed, 10 insertions, 8 deletions
diff --git a/build/Android.oat.mk b/build/Android.oat.mk
index 523d143..4692ac4 100644
--- a/build/Android.oat.mk
+++ b/build/Android.oat.mk
@@ -44,13 +44,14 @@ define create-core-oat-host-rules
core_pic_infix :=
core_dex2oat_dependency := $(DEX2OAT_DEPENDENCY)
- ifeq ($(1),default)
- core_compile_options += --compiler-backend=Quick
+ # With the optimizing compiler, we want to rerun dex2oat whenever there is
+ # a dex2oat change to catch regressions early.
+ ifeq ($(ART_USE_OPTIMIZING_COMPILER), true)
+ core_dex2oat_dependency := $(DEX2OAT)
endif
+
ifeq ($(1),optimizing)
core_compile_options += --compiler-backend=Optimizing
- # With the optimizing compiler, we want to rerun dex2oat whenever there is
- # a dex2oat change to catch regressions early.
core_dex2oat_dependency := $(DEX2OAT)
core_infix := -optimizing
endif
@@ -140,9 +141,12 @@ define create-core-oat-target-rules
core_pic_infix :=
core_dex2oat_dependency := $(DEX2OAT_DEPENDENCY)
- ifeq ($(1),default)
- core_compile_options += --compiler-backend=Quick
+ # With the optimizing compiler, we want to rerun dex2oat whenever there is
+ # a dex2oat change to catch regressions early.
+ ifeq ($(ART_USE_OPTIMIZING_COMPILER), true)
+ core_dex2oat_dependency := $(DEX2OAT)
endif
+
ifeq ($(1),optimizing)
ifeq ($($(3)TARGET_ARCH),arm64)
# TODO: Enable image generation on arm64 once the backend
@@ -150,8 +154,6 @@ define create-core-oat-target-rules
core_compile_options += --compiler-backend=Quick
else
core_compile_options += --compiler-backend=Optimizing
- # With the optimizing compiler, we want to rerun dex2oat whenever there is
- # a dex2oat change to catch regressions early.
core_dex2oat_dependency := $(DEX2OAT)
endif
core_infix := -optimizing