Skip to content

Commit

Permalink
export CC and friends. Should fix re2 benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
kcc committed Jul 14, 2017
1 parent 2de22dc commit 30014fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions common.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ FUZZ_CXXFLAGS="-O2 -fno-omit-frame-pointer -g -fsanitize=address -fsanitize-cove
CORPUS=CORPUS-$EXECUTABLE_NAME_BASE
JOBS=8

CC=${CC:-"clang"}
CXX=${CXX:-"clang++"}
CFLAGS=${CFLAGS:-"$FUZZ_CXXFLAGS"}
CXXFLAGS=${CXXFLAGS:-"$FUZZ_CXXFLAGS"}
LIB_FUZZING_ENGINE="libFuzzingEngine_${FUZZING_ENGINE}.a"
export CC=${CC:-"clang"}
export CXX=${CXX:-"clang++"}
export CFLAGS=${CFLAGS:-"$FUZZ_CXXFLAGS"}
export CXXFLAGS=${CXXFLAGS:-"$FUZZ_CXXFLAGS"}
export LIB_FUZZING_ENGINE="libFuzzingEngine_${FUZZING_ENGINE}.a"

# Additional build flags (e.g. for libFuzzer) can be passed to build.sh as $UNIQUE_BUILD

Expand Down
1 change: 1 addition & 0 deletions sqlite-2016-11-14/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Licensed under the Apache License, Version 2.0 (the "License");
. $(dirname $0)/../common.sh

set -x
build_libfuzzer
clang -c $FUZZ_CXXFLAGS $SCRIPT_DIR/sqlite3.c
clang -c $FUZZ_CXXFLAGS $SCRIPT_DIR/ossfuzz.c
Expand Down

0 comments on commit 30014fb

Please sign in to comment.