diff options
| -rw-r--r-- | llvm/docs/LibFuzzer.rst | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/docs/LibFuzzer.rst b/llvm/docs/LibFuzzer.rst index 770857f97f5..92937c2d0b5 100644 --- a/llvm/docs/LibFuzzer.rst +++ b/llvm/docs/LibFuzzer.rst @@ -722,12 +722,12 @@ you will eventually run out of RAM (see the ``-rss_limit_mb`` flag). Developing libFuzzer ==================== -Building libFuzzer as a part of LLVM project and running its test requires -special CMake configuration: +Building libFuzzer as a part of LLVM project and running its test requires +fresh clang as the host compiler and special CMake configuration: .. code-block:: console - cmake -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_USE_SANITIZER=Address -DLLVM_USE_SANITIZE_COVERAGE=YES -DCMAKE_BUILD_TYPE=Release /path/to/llvm + cmake -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_USE_SANITIZER=Address -DLLVM_USE_SANITIZE_COVERAGE=YES -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON /path/to/llvm ninja check-fuzzer @@ -737,15 +737,14 @@ Fuzzing components of LLVM :local: :depth: 1 +To build any of the LLVM fuzz targets use the build instructions above. + clang-format-fuzzer ------------------- The inputs are random pieces of C++-like text. -Build (make sure to use fresh clang as the host compiler): - .. code-block:: console - cmake -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_USE_SANITIZER=Address -DLLVM_USE_SANITIZE_COVERAGE=YES -DCMAKE_BUILD_TYPE=Release /path/to/llvm ninja clang-format-fuzzer mkdir CORPUS_DIR ./bin/clang-format-fuzzer CORPUS_DIR |

