Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdab1b53 authored by Nelson Li's avatar Nelson Li
Browse files

Add art_build_host_debug to soong config variable

The `ART_BUILD_HOST_DEBUG` environment variable is frequently used in
Android.mk files within the art/ directory. By adding it to
soong_config_variable, we make it accessible to the Soong build system,
which will be essential when converting art modules to Android.bp.

Bug: 347142939
Test: 1) m -j art-libartd-libopenjdkd-host-dependency
      2) ART_BUILD_HOST_DEBUG=false m -j art-libartd-libopenjdkd-host-dependency
      3) cd art && mm/mmm/mmma, then, check `libopenjdkd` be built.
Change-Id: I20401f29a1636b98dd8fc2dc4e679d1832a89435
parent e110c680
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -49,6 +49,8 @@ $(call soong_config_set_bool,art_module,host_prefer_32_bit,$(if $(filter true,$(
ifdef ART_DEBUG_OPT_FLAG
$(call soong_config_set,art_module,art_debug_opt_flag,$(ART_DEBUG_OPT_FLAG))
endif
# The default value of ART_BUILD_HOST_DEBUG is true
$(call soong_config_set_bool,art_module,art_build_host_debug,$(if $(filter false,$(ART_BUILD_HOST_DEBUG)),false,true))

ifdef TARGET_BOARD_AUTO
  $(call add_soong_config_var_value, ANDROID, target_board_auto, $(TARGET_BOARD_AUTO))