From 55f149263c93ba3d6ee77367c51c67db8a499b42 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Thu, 15 Feb 2018 12:51:08 -0800 Subject: [PATCH] Record the compilation reson in oat files for prebuilts Test: build Bug: 73102540 Change-Id: Ia2ba0670f36b3eeb481bc7b2ae44a1c89777bfc1 --- core/dex_preopt_odex_install.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/dex_preopt_odex_install.mk b/core/dex_preopt_odex_install.mk index e3372799e..88aefae67 100644 --- a/core/dex_preopt_odex_install.mk +++ b/core/dex_preopt_odex_install.mk @@ -260,6 +260,10 @@ ifeq (true, $(my_system_server_debug_info)) endif endif +# Set the compiler reason to 'prebuilt' to identify the oat files produced +# during the build, as opposed to compiled on the device. +LOCAL_DEX_PREOPT_FLAGS += --compilation-reason=prebuilt + $(built_odex): PRIVATE_DEX_PREOPT_FLAGS := $(LOCAL_DEX_PREOPT_FLAGS) $(built_vdex): $(built_odex) $(built_art): $(built_odex)