[clang] Handle __declspec() attributes in using
[llvm-project.git] / compiler-rt / lib / fuzzer / build.sh
blob504e54e3a819ee85fdfaf00b6c2d14979a76461f
1 #!/bin/sh
2 LIBFUZZER_SRC_DIR=$(dirname $0)
3 CXX="${CXX:-clang}"
4 for f in $LIBFUZZER_SRC_DIR/*.cpp; do
5 $CXX -g -O2 -fno-omit-frame-pointer -std=c++11 $f -c &
6 done
7 wait
8 rm -f libFuzzer.a
9 ar ru libFuzzer.a Fuzzer*.o
10 rm -f Fuzzer*.o