From 35e2f241c18d248cc98f450d5c570b3b98dea6d4 Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Thu, 13 Aug 2026 17:55:55 +0200 Subject: [PATCH] Modifed compilation options and ccls config. --- src/.ccls | 7 +++++++ src/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/.ccls diff --git a/src/.ccls b/src/.ccls new file mode 100644 index 0000000..f675587 --- /dev/null +++ b/src/.ccls @@ -0,0 +1,7 @@ +gcc +# Headers +-Iheaders + +# Macros +-DDEBUG=2 +-DASSET_FILE_NAME="$(make print-ASSET_OUTPUT)" diff --git a/src/Makefile b/src/Makefile index 9295a9c..53f6de9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -14,7 +14,7 @@ CORE_CC = gcc ifeq ($(RELEASE), 1) CORE_CFLAGS = --std=c17 --pedantic -O3 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTPUT))\" -D_GNU_SOURCE=1 $(shell pkg-config --cflags sdl3) # RELEASE else -CORE_CFLAGS = --std=c17 --pedantic -O0 -g -DDEBUG=2 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTPUT))\" -D_GNU_SOURCE=1 $(shell pkg-config --cflags sdl3) \ +CORE_CFLAGS = --std=c17 --pedantic -O1 -g -DDEBUG=2 -DASSET_FILE_NAME=\"$(notdir $(ASSET_OUTPUT))\" -D_GNU_SOURCE=1 $(shell pkg-config --cflags sdl3) \ -Wall -Wno-missing-braces -Wextra -Wno-missing-field-initializers \ -Wformat=2 -Wswitch-default -Wswitch-enum -Wcast-align \ -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 \