From 5520dc57d8997a52a740996bae6ff818dbc0e0c5 Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Mon, 8 Dec 2025 19:11:41 +0000 Subject: [PATCH] Add cchache for faster compile times --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ac103e4..9cf085a 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,11 @@ OBJ_DIR := build TARGET_DEBUG := $(BIN_DIR)/crib-dbg TARGET_RELEASE := $(BIN_DIR)/crib -CXX_DEBUG := g++ -CXX_RELEASE := clang++ +CCACHE := ccache +CXX_DEBUG := $(CCACHE) g++ +CXX_RELEASE := $(CCACHE) clang++ -CFLAGS_DEBUG := -std=c++20 -Wall -Wextra -O0 -g -fno-inline -gsplit-dwarf -fsanitize=address +CFLAGS_DEBUG := -std=c++20 -Wall -Wextra -O0 -fno-inline -gsplit-dwarf -g -fsanitize=address -fno-omit-frame-pointer CFLAGS_RELEASE := -std=c++20 -O3 -march=native -flto=thin \ -fno-exceptions -fno-rtti -fstrict-aliasing -ffast-math -funroll-loops \ -fomit-frame-pointer -DNDEBUG -s \