From 611e1db69aff00f297d0d59c47af3c9ae563eb7b Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 9 Oct 2014 17:34:45 +0100 Subject: [PATCH] Makefile cleanups. Also add the DEX2OAT_FLAGS to the generation of core.oat/core.art. Change-Id: I5d113fad460b2e14fc652816069adba29ca744b8 --- build/Android.common_build.mk | 10 ---------- build/Android.oat.mk | 6 +++--- test/Android.run-test.mk | 2 +- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/build/Android.common_build.mk b/build/Android.common_build.mk index 55a482197..976a66ea9 100644 --- a/build/Android.common_build.mk +++ b/build/Android.common_build.mk @@ -86,18 +86,8 @@ endif # # Used to enable optimizing compiler # -ART_USE_OPTIMIZING_COMPILER := false -ifneq ($(wildcard art/USE_OPTIMIZING_COMPILER),) -$(info Enabling ART_USE_OPTIMIZING_COMPILER because of existence of art/USE_OPTIMIZING_COMPILER) -ART_USE_OPTIMIZING_COMPILER := true -endif -ifeq ($(WITH_ART_USE_OPTIMIZING_COMPILER), true) -ART_USE_OPTIMIZING_COMPILER := true -endif - ifeq ($(ART_USE_OPTIMIZING_COMPILER),true) DEX2OAT_FLAGS := --compiler-backend=Optimizing -DALVIKVM_FLAGS += -Xcompiler-option --compiler-backend=Optimizing endif # diff --git a/build/Android.oat.mk b/build/Android.oat.mk index 6ef451f8c..844f58ea4 100644 --- a/build/Android.oat.mk +++ b/build/Android.oat.mk @@ -21,7 +21,7 @@ # The main rules to build the default "boot" image are in # build/core/dex_preopt_libart.mk -include art/build/Android.common_path.mk +include art/build/Android.common_build.mk # Use dex2oat debug version for better error reporting # $(1): 2ND_ or undefined, 2ND_ for 32-bit host builds. @@ -31,7 +31,7 @@ define create-core-oat-host-rules $$($(1)HOST_CORE_IMG_OUT): $$(HOST_CORE_DEX_LOCATIONS) $$(DEX2OAT_DEPENDENCY) @echo "host dex2oat: $$@ ($$?)" @mkdir -p $$(dir $$@) - $$(hide) $$(DEX2OAT) --runtime-arg -Xms$(DEX2OAT_IMAGE_XMS) --runtime-arg -Xmx$(DEX2OAT_IMAGE_XMX) \ + $$(hide) $$(DEX2OAT) $$(DEX2OAT_FLAGS) --runtime-arg -Xms$(DEX2OAT_IMAGE_XMS) --runtime-arg -Xmx$(DEX2OAT_IMAGE_XMX) \ --image-classes=$$(PRELOADED_CLASSES) $$(addprefix --dex-file=,$$(HOST_CORE_DEX_FILES)) \ $$(addprefix --dex-location=,$$(HOST_CORE_DEX_LOCATIONS)) --oat-file=$$($(1)HOST_CORE_OAT_OUT) \ --oat-location=$$($(1)HOST_CORE_OAT) --image=$$($(1)HOST_CORE_IMG_OUT) \ @@ -54,7 +54,7 @@ define create-core-oat-target-rules $$($(1)TARGET_CORE_IMG_OUT): $$($(1)TARGET_CORE_DEX_FILES) $$(DEX2OAT_DEPENDENCY) @echo "target dex2oat: $$@ ($$?)" @mkdir -p $$(dir $$@) - $$(hide) $$(DEX2OAT) --runtime-arg -Xms$(DEX2OAT_XMS) --runtime-arg -Xmx$(DEX2OAT_XMX) \ + $$(hide) $$(DEX2OAT) $$(DEX2OAT_FLAGS) --runtime-arg -Xms$(DEX2OAT_XMS) --runtime-arg -Xmx$(DEX2OAT_XMX) \ --image-classes=$$(PRELOADED_CLASSES) $$(addprefix --dex-file=,$$(TARGET_CORE_DEX_FILES)) \ $$(addprefix --dex-location=,$$(TARGET_CORE_DEX_LOCATIONS)) --oat-file=$$($(1)TARGET_CORE_OAT_OUT) \ --oat-location=$$($(1)TARGET_CORE_OAT) --image=$$($(1)TARGET_CORE_IMG_OUT) \ diff --git a/test/Android.run-test.mk b/test/Android.run-test.mk index ae5b08f17..5ca8bec9a 100644 --- a/test/Android.run-test.mk +++ b/test/Android.run-test.mk @@ -316,7 +316,7 @@ endif # {5: trace or no-trace}-{6: gcstress gcverify cms}-{7: forcecopy checkjni jni}- # {8: no-image image}-{9: test name}{10: 32 or 64} define define-test-art-run-test - run_test_options := $(addprefix --runtime-option ,$(DALVIKVM_FLAGS)) + run_test_options := prereq_rule := test_groups := uc_host_or_target := -- 2.11.0