Build with ccache

This commit is contained in:
Michael Theall 2020-04-23 01:01:11 -05:00
parent 6fce93093e
commit 38adb13ae9
3 changed files with 9 additions and 0 deletions

View File

@ -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
#---------------------------------------------------------------------------------

View File

@ -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)
#---------------------------------------------------------------------------------

View File

@ -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
#---------------------------------------------------------------------------------