Merge "Revert "Disable dexpreopt for aosp_riscv64"" am: 37d0273275
am: e6ff3ed647
Original change: https://android-review.googlesource.com/c/platform/build/+/2458952 Change-Id: I93c17dc9e2d0b7a0ec24433858c2d7d76701ada7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
4ca5ad6121
3 changed files with 4 additions and 10 deletions
|
@ -203,7 +203,7 @@ _board_strip_readonly_list += $(_build_broken_var_list) \
|
|||
|
||||
# Conditional to building on linux, as dex2oat currently does not work on darwin.
|
||||
ifeq ($(HOST_OS),linux)
|
||||
WITH_DEXPREOPT ?= true
|
||||
WITH_DEXPREOPT := true
|
||||
endif
|
||||
|
||||
# ###############################################################
|
||||
|
|
|
@ -65,15 +65,12 @@ ifeq ($(HOST_OS),linux)
|
|||
# Non eng linux builds must have preopt enabled so that system server doesn't run as interpreter
|
||||
# only. b/74209329
|
||||
ifeq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
||||
# TODO(riscv64) add compiler support and enable dexpreopt on RISC-V.
|
||||
ifeq (,$(filter riscv64, $(TARGET_ARCH)))
|
||||
ifneq (true,$(WITH_DEXPREOPT))
|
||||
ifneq (true,$(WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY))
|
||||
$(call pretty-error, DEXPREOPT must be enabled for user and userdebug builds)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Get value of a property. It is first searched from PRODUCT_VENDOR_PROPERTIES
|
||||
|
|
|
@ -26,6 +26,3 @@ include build/make/target/board/BoardConfigGsiCommon.mk
|
|||
|
||||
# Temporary hack while prebuilt modules are missing riscv64.
|
||||
ALLOW_MISSING_DEPENDENCIES := true
|
||||
|
||||
# Temporary until dex2oat works when targeting riscv64
|
||||
WITH_DEXPREOPT := false
|
||||
|
|
Loading…
Reference in a new issue