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 \