File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 1- # ARCH:=x86-64-v3 ; github `ubuntu-latest` compiler too old. <sigh>
2- ARCH: =native
3- OPT =-O3 -fomit-frame-pointer -funroll-loops -fstrict-aliasing -march=$(ARCH ) -mtune=native -msse4.2 -mavx
4- LTOFLAGS =-flto -fno-fat-lto-objects -fuse-linker-plugin
1+ OPT =-O3 -fomit-frame-pointer -funroll-loops -fstrict-aliasing -march=native -mtune=native
52WARNFLAGS =-Wall -Wextra -Wshadow -Wstrict-aliasing -Wcast-qual -Wcast-align -Wpointer-arith -Wredundant-decls -Wfloat-equal -Wswitch-enum
63CWARNFLAGS =-Wstrict-prototypes -Wmissing-prototypes
7- MISCFLAGS =-fstack-protector -fcf-protection - fvisibility=hidden
4+ MISCFLAGS=-fvisibility =hidden -fstack-protector
85DEVFLAGS =-ggdb -DDEBUG -D_FORTIFY_SOURCE=3 -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function
96
7+ #
8+ # Some architecture specific flags
9+ #
10+ ARCH: =$(shell uname -m)
11+ ifeq ($(ARCH ) ,x86_64)
12+ ARCHFLAGS =-fcf-protection -msse4.2 -mavx
13+ endif
14+ ifeq ($(ARCH ) ,aarch64)
15+ ARCHFLAGS=-mbranch-protection =bti
16+ endif
17+
1018AFLCC? =afl-clang-fast
1119
1220YELLOW ='\033[1;33m'
3947
4048BITWIDTH? =12
4149
42- CFLAGS=-std =c11 $(OPT ) $(CWARNFLAGS ) $(WARNFLAGS ) $(MISCFLAGS ) -DLZW_MAX_CODE_WIDTH=$(BITWIDTH )
43- CXXFLAGS=-std =gnu++17 -fno-rtti $(OPT ) $(WARNFLAGS ) $(MISCFLAGS )
50+ CFLAGS=-std =c11 $(OPT ) $(CWARNFLAGS ) $(WARNFLAGS ) $(ARCHFLAGS ) $( MISCFLAGS ) -DLZW_MAX_CODE_WIDTH=$(BITWIDTH )
51+ CXXFLAGS=-std =gnu++17 -fno-rtti $(OPT ) $(WARNFLAGS ) $(ARCHFLAGS ) $( MISCFLAGS )
4452
4553.PHONY : clean test fuzz
4654
You can’t perform that action at this time.
0 commit comments