aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.android6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.android b/Makefile.android
index c057585..c9ed595 100644
--- a/Makefile.android
+++ b/Makefile.android
@@ -86,7 +86,11 @@ endif
ifneq ($(BUILD_STANDALONE_EMULATOR),true)
ifneq ($(USE_CCACHE),)
- MY_CC := prebuilt/$(HOST_PREBUILT_TAG)/ccache/ccache $(MY_CC)
+ ccache := prebuilt/$(HOST_PREBUILT_TAG)/ccache/ccache
+ ifneq ($(ccache),$(firstword $(MY_CC)))
+ MY_CC := $(ccache) $(MY_CC)
+ endif
+ ccache :=
endif
endif