-fshort-enums in release mode

This commit is contained in:
Imbus 2024-07-02 06:27:22 +02:00
parent 8e77f810ec
commit 68af34c428

View file

@ -10,6 +10,7 @@ ifneq ($(DEBUG), 1)
CFLAGS += -fno-exceptions -fno-asynchronous-unwind-tables -fno-ident CFLAGS += -fno-exceptions -fno-asynchronous-unwind-tables -fno-ident
CFLAGS += -fno-unwind-tables -fno-stack-protector -fno-plt -fno-pic CFLAGS += -fno-unwind-tables -fno-stack-protector -fno-plt -fno-pic
CFLAGS += -O3 -std=c99 -march=native -mtune=native -fomit-frame-pointer CFLAGS += -O3 -std=c99 -march=native -mtune=native -fomit-frame-pointer
CFLAGS += -fshort-enums
else else
CFLAGS += -g -O0 -std=c99 -march=native -mtune=native CFLAGS += -g -O0 -std=c99 -march=native -mtune=native
CFLAGS += -DDEBUG CFLAGS += -DDEBUG