aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.android
diff options
context:
space:
mode:
authorYing Wang <wangying@android.com>2010-10-07 15:12:11 -0700
committerJean-Baptiste Queru <jbq@google.com>2010-10-08 13:21:29 -0700
commit7bf9d7ffaee95963a1f6535494eedfc09097271b (patch)
tree57873ae2beadf647145f812970e5232e7e580faa /Makefile.android
parent008c97e3652233186d83a5010f69741368ef98db (diff)
downloadexternal_qemu-7bf9d7ffaee95963a1f6535494eedfc09097271b.zip
external_qemu-7bf9d7ffaee95963a1f6535494eedfc09097271b.tar.gz
external_qemu-7bf9d7ffaee95963a1f6535494eedfc09097271b.tar.bz2
Don't prepend ccache if it's already there
Bug: 3069576 Change-Id: I8345209c5c885ed7ed8e043e051884d64008961c
Diffstat (limited to 'Makefile.android')
-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