From 0886d454dd0b483f34f6b0f3753783e8ccaae8bd Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sat, 20 Jul 2019 23:19:29 -0500 Subject: [PATCH] Enable ccache --- exosphere/lp0fw/Makefile | 2 ++ exosphere/rebootstub/Makefile | 2 ++ exosphere/sc7fw/Makefile | 2 ++ fusee/fusee-primary/Makefile | 2 ++ fusee/fusee-secondary/Makefile | 2 ++ sept/sept-primary/Makefile | 4 +++- sept/sept-secondary/Makefile | 2 ++ sept/sept-secondary/key_derivation/Makefile | 2 ++ stratosphere/ams_mitm/Makefile | 3 ++- stratosphere/boot/Makefile | 3 ++- stratosphere/creport/Makefile | 3 ++- stratosphere/dmnt/Makefile | 3 ++- stratosphere/eclct.stub/Makefile | 3 ++- stratosphere/fatal/Makefile | 3 ++- stratosphere/libstratosphere/Makefile | 3 ++- stratosphere/loader/Makefile | 3 ++- stratosphere/pm/Makefile | 3 ++- stratosphere/ro/Makefile | 3 ++- stratosphere/sm/Makefile | 3 ++- stratosphere/spl/Makefile | 3 ++- thermosphere/Makefile | 3 ++- troposphere/reboot_to_payload/Makefile | 3 ++- 22 files changed, 45 insertions(+), 15 deletions(-) diff --git a/exosphere/lp0fw/Makefile b/exosphere/lp0fw/Makefile index b3b032b84..679e33bae 100644 --- a/exosphere/lp0fw/Makefile +++ b/exosphere/lp0fw/Makefile @@ -47,6 +47,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(TOPDIR)/linker.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/exosphere/rebootstub/Makefile b/exosphere/rebootstub/Makefile index ff265beef..22cbabffe 100644 --- a/exosphere/rebootstub/Makefile +++ b/exosphere/rebootstub/Makefile @@ -47,6 +47,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(TOPDIR)/linker.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/exosphere/sc7fw/Makefile b/exosphere/sc7fw/Makefile index ff265beef..22cbabffe 100644 --- a/exosphere/sc7fw/Makefile +++ b/exosphere/sc7fw/Makefile @@ -47,6 +47,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(TOPDIR)/linker.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/fusee/fusee-primary/Makefile b/fusee/fusee-primary/Makefile index 107b32f55..75a95f8da 100644 --- a/fusee/fusee-primary/Makefile +++ b/fusee/fusee-primary/Makefile @@ -57,6 +57,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(TOPDIR)/linker.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := +CXX := `which ccache` $(CXX)LIBS +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/fusee/fusee-secondary/Makefile b/fusee/fusee-secondary/Makefile index 64fa59ba3..140710738 100644 --- a/fusee/fusee-secondary/Makefile +++ b/fusee/fusee-secondary/Makefile @@ -66,6 +66,8 @@ ASFLAGS := -g $(ARCH) $(INCLUDE) $(DEFINES) LDFLAGS = -specs=$(TOPDIR)/linker.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/sept/sept-primary/Makefile b/sept/sept-primary/Makefile index 96a026436..616fa0dac 100644 --- a/sept/sept-primary/Makefile +++ b/sept/sept-primary/Makefile @@ -57,6 +57,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(TOPDIR)/linker.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing @@ -66,7 +68,7 @@ LIBDIRS := #--------------------------------------------------------------------------------- -# no real need to edit anything past this point unless you need to add additional +# no real need to edit anything past this point unless you need to add additiona # rules for different file extensions #--------------------------------------------------------------------------------- ifneq ($(BUILD),$(notdir $(CURDIR))) diff --git a/sept/sept-secondary/Makefile b/sept/sept-secondary/Makefile index fbbcac1a3..0faeb7717 100644 --- a/sept/sept-secondary/Makefile +++ b/sept/sept-secondary/Makefile @@ -57,6 +57,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(TOPDIR)/linker.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/sept/sept-secondary/key_derivation/Makefile b/sept/sept-secondary/key_derivation/Makefile index 6939c5afc..2baaebb7b 100644 --- a/sept/sept-secondary/key_derivation/Makefile +++ b/sept/sept-secondary/key_derivation/Makefile @@ -47,6 +47,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(TOPDIR)/linker.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing diff --git a/stratosphere/ams_mitm/Makefile b/stratosphere/ams_mitm/Makefile index a29d84a8a..531876d21 100644 --- a/stratosphere/ams_mitm/Makefile +++ b/stratosphere/ams_mitm/Makefile @@ -49,7 +49,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/boot/Makefile b/stratosphere/boot/Makefile index 8714afa85..34e59abfd 100644 --- a/stratosphere/boot/Makefile +++ b/stratosphere/boot/Makefile @@ -56,7 +56,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/creport/Makefile b/stratosphere/creport/Makefile index 71c014dc5..f86d30521 100644 --- a/stratosphere/creport/Makefile +++ b/stratosphere/creport/Makefile @@ -49,7 +49,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/dmnt/Makefile b/stratosphere/dmnt/Makefile index 71c014dc5..f86d30521 100644 --- a/stratosphere/dmnt/Makefile +++ b/stratosphere/dmnt/Makefile @@ -49,7 +49,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/eclct.stub/Makefile b/stratosphere/eclct.stub/Makefile index 2d3bf2862..5d05300da 100644 --- a/stratosphere/eclct.stub/Makefile +++ b/stratosphere/eclct.stub/Makefile @@ -49,7 +49,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/fatal/Makefile b/stratosphere/fatal/Makefile index ad916c1c4..3856be99c 100644 --- a/stratosphere/fatal/Makefile +++ b/stratosphere/fatal/Makefile @@ -49,7 +49,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := `freetype-config --libs` -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/libstratosphere/Makefile b/stratosphere/libstratosphere/Makefile index ea746be8b..f6aad268d 100644 --- a/stratosphere/libstratosphere/Makefile +++ b/stratosphere/libstratosphere/Makefile @@ -38,7 +38,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/loader/Makefile b/stratosphere/loader/Makefile index cd7b81cb1..d5c004ed0 100644 --- a/stratosphere/loader/Makefile +++ b/stratosphere/loader/Makefile @@ -49,7 +49,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/pm/Makefile b/stratosphere/pm/Makefile index 9db18530e..7276e66dc 100644 --- a/stratosphere/pm/Makefile +++ b/stratosphere/pm/Makefile @@ -49,7 +49,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/ro/Makefile b/stratosphere/ro/Makefile index 17c54ea6f..fbc7fad18 100644 --- a/stratosphere/ro/Makefile +++ b/stratosphere/ro/Makefile @@ -49,7 +49,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/sm/Makefile b/stratosphere/sm/Makefile index 001723030..eb8635e91 100644 --- a/stratosphere/sm/Makefile +++ b/stratosphere/sm/Makefile @@ -49,7 +49,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/stratosphere/spl/Makefile b/stratosphere/spl/Makefile index cd7b81cb1..d5c004ed0 100644 --- a/stratosphere/spl/Makefile +++ b/stratosphere/spl/Makefile @@ -49,7 +49,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lstratosphere -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/thermosphere/Makefile b/thermosphere/Makefile index 7f2634bbe..d678cf50e 100644 --- a/thermosphere/Makefile +++ b/thermosphere/Makefile @@ -56,7 +56,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(TOPDIR)/linker.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib diff --git a/troposphere/reboot_to_payload/Makefile b/troposphere/reboot_to_payload/Makefile index 410dae264..170742093 100644 --- a/troposphere/reboot_to_payload/Makefile +++ b/troposphere/reboot_to_payload/Makefile @@ -57,7 +57,8 @@ ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) LIBS := -lnx - +CXX := `which ccache` $(CXX) +CC := `which ccache` $(CC) #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing # include and lib