From 38adb13ae9571591d55cdad4a9d88ad5ea280ba8 Mon Sep 17 00:00:00 2001 From: Michael Theall Date: Thu, 23 Apr 2020 01:01:11 -0500 Subject: [PATCH] Build with ccache --- Makefile.3ds | 3 +++ Makefile.nds | 3 +++ Makefile.switch | 3 +++ 3 files changed, 9 insertions(+) diff --git a/Makefile.3ds b/Makefile.3ds index ea1110e..2070cc8 100644 --- a/Makefile.3ds +++ b/Makefile.3ds @@ -78,6 +78,9 @@ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17 ASFLAGS := -g $(ARCH) LDFLAGS = -specs=3dsx.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) $(OPTIMIZE) +CC := `which ccache 2>/dev/null` $(CC) +CXX := `which ccache 2>/dev/null` $(CXX) + LIBS := -lcitro3d -lctru -lm #--------------------------------------------------------------------------------- diff --git a/Makefile.nds b/Makefile.nds index eab97a3..f8c8899 100644 --- a/Makefile.nds +++ b/Makefile.nds @@ -52,6 +52,9 @@ CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17 ASFLAGS := -g $(ARCH) LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) $(OPTIMIZE) +CC := `which ccache 2>/dev/null` $(CC) +CXX := `which ccache 2>/dev/null` $(CXX) + #--------------------------------------------------------------------------------- # any extra libraries we wish to link with the project (order is important) #--------------------------------------------------------------------------------- diff --git a/Makefile.switch b/Makefile.switch index 4ade59a..1f9005f 100644 --- a/Makefile.switch +++ b/Makefile.switch @@ -82,6 +82,9 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) \ $(OPTIMIZE) -Wl,-Map,$(notdir $*.map) -Wl,--gc-sections +CC := `which ccache 2>/dev/null` $(CC) +CXX := `which ccache 2>/dev/null` $(CXX) + LIBS := `$(PREFIX)pkg-config --libs libzstd` -ldeko3dd -lnx #---------------------------------------------------------------------------------