diff --git a/core/android_soong_config_vars.mk b/core/android_soong_config_vars.mk index ee12c8c1e..883f92dc9 100644 --- a/core/android_soong_config_vars.mk +++ b/core/android_soong_config_vars.mk @@ -27,3 +27,10 @@ $(call add_soong_config_namespace,ANDROID) # Add variables to the namespace below: $(call add_soong_config_var,ANDROID,TARGET_ENABLE_MEDIADRM_64) + +# TODO(b/172480615): Remove when platform uses ART Module prebuilts by default. +ifeq (,$(filter art_module,$(SOONG_CONFIG_NAMESPACES))) + $(call add_soong_config_namespace,art_module) + SOONG_CONFIG_art_module += source_build +endif +SOONG_CONFIG_art_module_source_build ?= true