forked from openkylin/platform_build
Merge "select.mk: Tune ccache options"
This commit is contained in:
commit
6020d698f5
|
@ -60,6 +60,23 @@ $(combo_target)STATIC_LIB_SUFFIX := .a
|
|||
include $(BUILD_COMBOS)/$(combo_target)$(combo_os_arch).mk
|
||||
|
||||
ifneq ($(USE_CCACHE),)
|
||||
# The default check uses size and modification time, causing false misses
|
||||
# since the mtime depends when the repo was checked out
|
||||
export CCACHE_COMPILERCHECK := content
|
||||
|
||||
# See man page, optimizations to get more cache hits
|
||||
# implies that __DATE__ and __TIME__ are not critical for functionality.
|
||||
# Ignore include file modification time since it will depend on when
|
||||
# the repo was checked out
|
||||
export CCACHE_SLOPPINESS := time_macros,include_file_mtime,file_macro
|
||||
|
||||
# Turn all preprocessor absolute paths into relative paths.
|
||||
# Fixes absolute paths in preprocessed source due to use of -g.
|
||||
# We don't really use system headers much so the rootdir is
|
||||
# fine; ensures these paths are relative for all Android trees
|
||||
# on a workstation.
|
||||
export CCACHE_BASEDIR := /
|
||||
|
||||
CCACHE_HOST_TAG := $(HOST_PREBUILT_TAG)
|
||||
# If we are cross-compiling Windows binaries on Linux
|
||||
# then use the linux ccache binary instead.
|
||||
|
|
Loading…
Reference in New Issue