Changeset 32075


Ignore:
Timestamp:
2012-06-06T15:27:11+02:00 (6 years ago)
Author:
blogic
Message:

[tools] add ccache wrapper

Location:
trunk
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/rules.mk

    r31233 r32075  
    189189 
    190190ifneq ($(CONFIG_CCACHE),) 
    191   TARGET_CC:= ccache $(TARGET_CC) 
    192   TARGET_CXX:= ccache $(TARGET_CXX) 
     191  TARGET_CC_NOCACHE:=$(TARGET_CC) 
     192  TARGET_CXX_NOCACHE:=$(TARGET_CXX) 
     193  export TARGET_CC_NOCACHE 
     194  export TARGET_CXX_NOCACHE 
     195  TARGET_CC:= ccache_cc 
     196  TARGET_CXX:= ccache_cxx 
    193197  HOSTCC:= ccache $(HOSTCC) 
    194198endif 
  • trunk/tools/ccache/Makefile

    r31166 r32075  
    1818include $(INCLUDE_DIR)/host-build.mk 
    1919 
     20define Host/Install/ccache 
     21        $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/ 
     22        $(CP) ./files/* $(STAGING_DIR_HOST)/bin/ 
     23endef 
     24 
    2025ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found) 
    2126  define Host/Compile 
     
    2732        $(call Host/Clean/Default) 
    2833  endef 
     34  define Host/Install 
     35        $(call Host/Install/Default) 
     36        $(call Host/Install/ccache) 
     37  endef 
    2938else 
    3039  define Host/Prepare 
     
    3544  endef 
    3645  define Host/Install 
     46        $(call Host/Install/ccache) 
    3747  endef 
    3848  define Host/Clean 
Note: See TracChangeset for help on using the changeset viewer.