Added option to set extra flags
This commit is contained in:
parent
15fb694d7b
commit
cbe9d25f11
1 changed files with 5 additions and 0 deletions
5
makefile
5
makefile
|
|
@ -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)'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue