Added LTO and fixed warnings
This commit is contained in:
parent
3e450b5909
commit
15fb694d7b
3 changed files with 25 additions and 20 deletions
9
makefile
9
makefile
|
|
@ -4,7 +4,7 @@
|
|||
ARCH = native
|
||||
|
||||
# Optimization level
|
||||
O = 2
|
||||
O = s
|
||||
|
||||
# Flags for the compiler
|
||||
FLAGS = -std=c23
|
||||
|
|
@ -17,15 +17,16 @@ endif
|
|||
FLAGS += -pedantic
|
||||
FLAGS += -Wall
|
||||
FLAGS += -Wextra
|
||||
FLAGS += -Werror
|
||||
#FLAGS += -Werror
|
||||
FLAGS += -Wconversion
|
||||
FLAGS += -Wmissing-prototypes
|
||||
FLAGS += -Wlogical-op
|
||||
FLAGS += -Wdisabled-optimization
|
||||
FLAGS += -fanalyzer
|
||||
FLAGS += -flto
|
||||
# These flags are because of the compiler otherwise giving too much warning
|
||||
FLAGS += -Wno-sign-conversion
|
||||
FLAGS += -Wformat-truncation=0
|
||||
#FLAGS += -Wno-sign-conversion
|
||||
#FLAGS += -Wformat-truncation=0
|
||||
|
||||
# Compile flag for defining GITHASH to put at the end of the version string
|
||||
GITFLAG = -D'GITHASH=$(shell git rev-parse --short=1 HEAD)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue