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

Commit 4a30e138 authored by Jiakai Zhang's avatar Jiakai Zhang
Browse files

Fix the build system to pass "-Xgc:CMC" to dex2oat correctly.

Bug: 242553398
Test: -
  1. lunch aosp_oriole-userdebug
  2. m
  3. Don't see "--runtime-arg -Xgc:CMC" in .invocation files.
Test: -
  1. lunch aosp_oriole-userdebug
  2. OVERRIDE_ENABLE_UFFD_GC=true m
  3. See "--runtime-arg -Xgc:CMC" in .invocation files.
Change-Id: If1c2c5feecc8148a0e2fa6a0e0b23641945f5b1d
parent 7e34ad14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ ifeq ($(WRITE_SOONG_VARIABLES),true)
  $(call add_json_str,  Dex2oatXmx,                              $(DEX2OAT_XMX))
  $(call add_json_str,  Dex2oatXms,                              $(DEX2OAT_XMS))
  $(call add_json_str,  EmptyDirectory,                          $(OUT_DIR)/empty)
  $(call add_json_bool, EnableUffdGc,                            $(ENABLE_UFFD_GC))
  $(call add_json_bool, EnableUffdGc,                            $(filter true,$(ENABLE_UFFD_GC)))

ifdef TARGET_ARCH
  $(call add_json_map,  CpuVariant)