From 5ccf0900d0d0c568a5c58ab9ffd9e6349e845c52 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Wed, 22 Nov 2017 14:08:22 -0800 Subject: [PATCH] Build: Make dex2oat boot image error abort explicit Add explicit arguments that will abort boot image compilation when a class is found that fails compile-time verification. This allows certain configurations to disable these checks. WARNING: Disabling the checks is highly discouraged. Bug: 69106371 Test: m Change-Id: I63e915005fcda588b223ec60ef8c9db28d42e577 --- core/dex_preopt_libart_boot.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/dex_preopt_libart_boot.mk b/core/dex_preopt_libart_boot.mk index 302cc8b96..8b71198fb 100644 --- a/core/dex_preopt_libart_boot.mk +++ b/core/dex_preopt_libart_boot.mk @@ -97,6 +97,8 @@ $($(my_2nd_arch_prefix)DEFAULT_DEX_PREOPT_BUILT_IMAGE_FILENAME) : $(LIBART_TARGE --runtime-arg -Xnorelocate --compile-pic \ --no-generate-debug-info --generate-build-id \ --multi-image --no-inline-from=core-oj.jar \ + --abort-on-hard-verifier-error \ + --abort-on-soft-verifier-error \ $(PRODUCT_DEX_PREOPT_BOOT_FLAGS) $(GLOBAL_DEXPREOPT_FLAGS) $(ART_BOOT_IMAGE_EXTRA_ARGS) endif