From 269b1a0864f89445a8ca0ad8ded74c9281dec8ff Mon Sep 17 00:00:00 2001 From: Phil Turnbull Date: Mon, 12 Mar 2018 15:23:36 -0400 Subject: [PATCH] Update repo for libFuzzer libFuzzer has now been broken out from LLVM and can be built separately --- test/fuzz/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/fuzz/README.md b/test/fuzz/README.md index a032e601..d5040b95 100644 --- a/test/fuzz/README.md +++ b/test/fuzz/README.md @@ -4,12 +4,12 @@ The tree-sitter fuzzing support requires 1) the `libFuzzer` runtime library and ## libFuzzer -The main fuzzing logic is implemented by `libFuzzer` which is part of the LLVM project but is not shipped by distros. It will need to be built from source but does not require building the _whole_ LLVM project. LLVM can be downloaded from llvm.org using SVN or [llvm-mirror](https://github.com/llvm-mirror/llvm) using git. `libFuzzer` can be built as, e.g.: +The main fuzzing logic is implemented by `libFuzzer` which is part of the compiler-rt project but is not shipped by distros. `libFuzzer` will need to be built from source, e.g.: ``` cd ~/src -git clone https://github.com/llvm-mirror/llvm -cd llvm/lib/Fuzzer +git clone https://github.com/llvm-mirror/compiler-rt +cd compiler-rt/lib/fuzzer ./build.sh ``` @@ -21,7 +21,7 @@ The fuzzers can then be built with: ``` export CLANG_DIR=$HOME/src/third_party/llvm-build/Release+Asserts/bin CC="$CLANG_DIR/clang" CXX="$CLANG_DIR/clang++" LINK="$CLANG_DIR/clang++" \ - LIB_FUZZER_PATH=$HOME/src/llvm/lib/Fuzzer/libFuzzer.a \ + LIB_FUZZER_PATH=$HOME/src/compiler-rt/lib/fuzzer/libFuzzer.a \ ./script/build_fuzzers ```