From 406418d0551080269555d36105bed1cfa904b497 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 19 Jun 2018 23:03:34 -0700 Subject: [PATCH] Fix UML build If there aren't any boot dex files, we can't generate a boot image profile. Test: lunch uml-eng; m Test: diff build-aosp_arm.ninja Change-Id: I09cc1ef37379d9d353958c8aa75731f3d29df759 --- core/dex_preopt_libart.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/dex_preopt_libart.mk b/core/dex_preopt_libart.mk index 64ad20020..b64155cfb 100644 --- a/core/dex_preopt_libart.mk +++ b/core/dex_preopt_libart.mk @@ -100,6 +100,9 @@ ifneq (true,$(TARGET_BUILD_PDK)) my_use_profile_for_boot_image := true endif endif +ifeq (,$(strip $(LIBART_TARGET_BOOT_DEX_FILES))) +my_use_profile_for_boot_image := false +endif ifeq (true,$(my_use_profile_for_boot_image))