[libFuzzer] add a standalone build script
authorKostya Serebryany <kcc@google.com>
Sat, 24 Sep 2016 04:00:00 +0000 (04:00 +0000)
committerKostya Serebryany <kcc@google.com>
Sat, 24 Sep 2016 04:00:00 +0000 (04:00 +0000)
llvm-svn: 282321

llvm/lib/Fuzzer/build.sh [new file with mode: 0755]

diff --git a/llvm/lib/Fuzzer/build.sh b/llvm/lib/Fuzzer/build.sh
new file mode 100755 (executable)
index 0000000..92d7b8c
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+LIBFUZZER_SRC_DIR=$(dirname $0)
+for f in $LIBFUZZER_SRC_DIR/*.cpp; do
+  clang -O2 -std=c++11 $f -c &
+done
+wait
+rm -f libFuzzer.a
+ar ru libFuzzer.a Fuzzer*.o
+rm -f Fuzzer*.o
+