Ticket #9611: ccache_cmake.diff

File ccache_cmake.diff, 637 bytes (added by swalker, 7 years ago)

https://lists.openwrt.org/pipermail/openwrt-devel/2011-June/011179.html

  • include/cmake.mk

     
    1515  CMAKE_CXX_COMPILER_ARG1:= 
    1616 endif 
    1717else 
    18   CMAKE_C_COMPILER:=$(STAGING_DIR_HOST)/bin/ccache 
     18  CCACHE:=$(shell which ccache) 
     19  ifeq ($(CCACHE),) 
     20    CCACHE:=$(STAGING_DIR_HOST)/bin/ccache 
     21  endif 
     22  CMAKE_C_COMPILER:=$(CCACHE) 
    1923  CMAKE_C_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CC)) 
    20   CMAKE_CXX_COMPILER:=$(STAGING_DIR_HOST)/bin/ccache 
     24  CMAKE_CXX_COMPILER:=$(CCACHE) 
    2125  CMAKE_CXX_COMPILER_ARG1:=$(filter-out ccache,$(TARGET_CXX)) 
    2226endif 
    2327