From aeac0efd57fe4e052cbc354af4c05b69423ea64b Mon Sep 17 00:00:00 2001 From: FennecTECH Date: Sun, 21 Jul 2019 01:40:23 -0500 Subject: [PATCH] Ccache Use ccache to improve performance. --- nx/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nx/Makefile b/nx/Makefile index 9f57267c..cd8f57c7 100644 --- a/nx/Makefile +++ b/nx/Makefile @@ -66,10 +66,18 @@ CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*))) +#--------------------------------------------------------------------------------- +# use CCACHE to improve performance +#--------------------------------------------------------------------------------- + +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) + #--------------------------------------------------------------------------------- # use CXX for linking C++ projects, CC for standard C #--------------------------------------------------------------------------------- ifeq ($(strip $(CPPFILES)),) + #--------------------------------------------------------------------------------- export LD := $(CC) #---------------------------------------------------------------------------------