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

Commit 0ce72c45 authored by Ying Wang's avatar Ying Wang Committed by Android Git Automerger
Browse files

am 3b008f36: am 83f69eb5: Prepend ccache to CC/CXX if necessary.

Merge commit '3b008f36'

* commit '3b008f36':
  Prepend ccache to CC/CXX if necessary.
parents d25cc67e 3b008f36
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -63,7 +63,12 @@ include $(BUILD_COMBOS)/$(combo_target)$(combo_os_arch).mk

ifneq ($(USE_CCACHE),)
  ccache := prebuilt/$(HOST_PREBUILT_TAG)/ccache/ccache
  # prepend ccache if necessary
  ifneq ($(ccache),$(firstword $($(combo_target)CC)))
    $(combo_target)CC := $(ccache) $($(combo_target)CC)
  endif
  ifneq ($(ccache),$(firstword $($(combo_target)CXX)))
    $(combo_target)CXX := $(ccache) $($(combo_target)CXX)
  endif
  ccache =
endif