diff --git a/core/soong_config.mk b/core/soong_config.mk index 12b41358f7..9be3340eb2 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -361,6 +361,12 @@ $(call add_json_bool, BoardUseVbmetaDigestInFingerprint, $(filter true,$(BOARD_U $(call add_json_list, OemProperties, $(PRODUCT_OEM_PROPERTIES)) +# Do not set ArtTargetIncludeDebugBuild into any value if PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD is not set, +# to have the same behavior from runtime_libart.mk. +ifneq ($(PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD),) +$(call add_json_bool, ArtTargetIncludeDebugBuild, $(PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD)) +endif + $(call json_end) $(file >$(SOONG_VARIABLES).tmp,$(json_contents))