Modifed compilation options and ccls config.
This commit is contained in:
parent
2860380395
commit
60946e130b
|
|
@ -0,0 +1,7 @@
|
|||
gcc
|
||||
# Headers
|
||||
-ISDL3_Core/src/headers
|
||||
|
||||
# Macros
|
||||
-DDEBUG=2
|
||||
-DASSET_FILE_NAME="$(make print-ASSET_OUTPUT)"
|
||||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue