Modifed compilation options and ccls config.

This commit is contained in:
Ulysse Cura 2026-08-13 17:55:55 +02:00
parent 2860380395
commit 60946e130b
2 changed files with 8 additions and 1 deletions

7
src/.ccls Normal file
View File

@ -0,0 +1,7 @@
gcc
# Headers
-ISDL3_Core/src/headers
# Macros
-DDEBUG=2
-DASSET_FILE_NAME="$(make print-ASSET_OUTPUT)"

View File

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