aosp12/external/llvm-project/compiler-rt/lib/fuzzer/build.sh

12 lines
230 B
Bash
Raw Permalink Normal View History

2023-01-09 17:11:35 +08:00
#!/bin/sh
LIBFUZZER_SRC_DIR=$(dirname $0)
CXX="${CXX:-clang}"
for f in $LIBFUZZER_SRC_DIR/*.cpp; do
$CXX -g -O2 -fno-omit-frame-pointer -std=c++11 $f -c &
done
wait
rm -f libFuzzer.a
ar ru libFuzzer.a Fuzzer*.o
rm -f Fuzzer*.o