Skip to content

Commit

Permalink
[init] Generation impl clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
lahiri-phdworks committed Oct 24, 2023
1 parent 8efa183 commit 271a27c
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 969 deletions.
5 changes: 0 additions & 5 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ ARCH = $(shell uname -m)

$(info [*] Compiling AFL++ for OS $(SYS) on ARCH $(ARCH))

ifdef STABLE_DEBUG
CFLAGS += -DSTABLE_DEBUG
CXXFLAGS += -DSTABLE_DEBUG
endif

ifdef NO_SPLICING
override CFLAGS_OPT += -DNO_SPLICING
endif
Expand Down
12 changes: 2 additions & 10 deletions GNUmakefile.gcc_plugin
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,15 @@ MAN_PATH ?= $(PREFIX)/share/man/man8

VERSION = $(shell grep '^$(HASH)define VERSION ' ./config.h | cut -d '"' -f2)

ifdef STABLE_DEBUG
CFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=1 -DSTABLE_DEBUG
else
CFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=1
endif
CFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=1

CFLAGS_SAFE := -Wall -Iinclude -Wno-pointer-sign \
-DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
-DGCC_VERSION=\"$(GCCVER)\" -DGCC_BINDIR=\"$(GCCBINDIR)\" \
-Wno-unused-function
override CFLAGS += $(CFLAGS_SAFE)

ifdef STABLE_DEBUG
CXXFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=1 -DSTABLE_DEBUG
else
CXXFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=1
endif
CXXFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=1

CXXEFLAGS := $(CXXFLAGS) -Wall -std=c++11

Expand Down
5 changes: 0 additions & 5 deletions GNUmakefile.llvm
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ VERSION = $(shell grep '^$(HASH)define VERSION ' ./config.h | cut -d '"' -f2

SYS = $(shell uname -s)

ifdef STABLE_DEBUG
CFLAGS += -DSTABLE_DEBUG
CXXFLAGS += -DSTABLE_DEBUG
endif

ifeq "$(SYS)" "OpenBSD"
LLVM_CONFIG ?= $(BIN_PATH)/llvm-config
HAS_OPT = $(shell test -x $(BIN_PATH)/opt && echo 0 || echo 1)
Expand Down
Loading

0 comments on commit 271a27c

Please sign in to comment.