diff options
author | Ben Smith <binji@chromium.org> | 2016-03-22 12:12:08 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-04-01 15:28:41 -0700 |
commit | 8f7a33e6828c6871497290baa1b344061c9ec448 (patch) | |
tree | bede68923f429110a814a7937a3d785e27a25e3c /Makefile | |
parent | 0592bad3415282a3f7636102507958b25ad65e49 (diff) | |
download | wabt-8f7a33e6828c6871497290baa1b344061c9ec448.tar.gz wabt-8f7a33e6828c6871497290baa1b344061c9ec448.tar.bz2 wabt-8f7a33e6828c6871497290baa1b344061c9ec448.zip |
add afl-fuzzing setup again to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -20,11 +20,14 @@ MAKEFILE_NAME := $(lastword $(MAKEFILE_LIST)) ROOT_DIR := $(dir $(abspath $(MAKEFILE_NAME))) USE_NINJA ?= 0 +FUZZ_BIN_DIR ?= afl-fuzz +GCC_FUZZ_CC := ${FUZZ_BIN_DIR}/afl-gcc +GCC_FUZZ_CXX := ${FUZZ_BIN_DIR}/afl-g++ DEFAULT_COMPILER = CLANG DEFAULT_BUILD_TYPE = DEBUG -COMPILERS := GCC GCC_I686 CLANG +COMPILERS := GCC GCC_I686 GCC_FUZZ CLANG BUILD_TYPES := DEBUG RELEASE SANITIZERS := ASAN MSAN LSAN CONFIGS := NORMAL ASAN MSAN LSAN NO_FLEX_BISON NO_TESTS @@ -33,6 +36,7 @@ EXECUTABLES := sexpr-wasm wasm-wast hexfloat_test # directory names GCC_DIR := gcc/ GCC_I686_DIR := gcc-i686/ +GCC_FUZZ_DIR := gcc-fuzz/ CLANG_DIR := clang/ DEBUG_DIR := Debug/ RELEASE_DIR := Release/ @@ -47,6 +51,7 @@ NO_TESTS_DIR := no-tests/ GCC_FLAG := -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ GCC_I686_FLAG := -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ \ -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 +GCC_FUZZ_FLAG := -DCMAKE_C_COMPILER=${GCC_FUZZ_CC} -DCMAKE_CXX_COMPILER=${GCC_FUZZ_CXX} CLANG_FLAG := -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ DEBUG_FLAG := -DCMAKE_BUILD_TYPE=Debug RELEASE_FLAG := -DCMAKE_BUILD_TYPE=Release @@ -60,6 +65,7 @@ NO_TESTS_FLAG := -DBUILD_TESTS=OFF # make target prefixes GCC_PREFIX := gcc GCC_I686_PREFIX := gcc-i686 +GCC_FUZZ_PREFIX := gcc-fuzz CLANG_PREFIX := clang DEBUG_PREFIX := -debug RELEASE_PREFIX := -release @@ -157,4 +163,3 @@ $(foreach CONFIG,$(CONFIGS), \ $(foreach COMPILER,$(COMPILERS), \ $(foreach BUILD_TYPE,$(BUILD_TYPES), \ $(eval $(call TEST,$(COMPILER),$(BUILD_TYPE),$(CONFIG)))))) - |