Added option to set extra flags

This commit is contained in:
AnnaSnoeijs 2025-08-14 22:02:04 +02:00
parent 15fb694d7b
commit cbe9d25f11

View file

@ -28,6 +28,11 @@ FLAGS += -flto
#FLAGS += -Wno-sign-conversion #FLAGS += -Wno-sign-conversion
#FLAGS += -Wformat-truncation=0 #FLAGS += -Wformat-truncation=0
ifneq (, $(EXTRA_FLAGS))
FLAGS += $(EXTRA_FLAGS)
endif
# Compile flag for defining GITHASH to put at the end of the version string # Compile flag for defining GITHASH to put at the end of the version string
GITFLAG = -D'GITHASH=$(shell git rev-parse --short=1 HEAD)' GITFLAG = -D'GITHASH=$(shell git rev-parse --short=1 HEAD)'