[llvm] r272088 - [libFuzzer] docs: merge two lines with cmake instructions, add -DLLVM_ENABLE_ASSERTIONS=ON

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 7 18:31:40 PDT 2016


Author: kcc
Date: Tue Jun  7 20:31:40 2016
New Revision: 272088

URL: http://llvm.org/viewvc/llvm-project?rev=272088&view=rev
Log:
[libFuzzer] docs: merge two lines with cmake instructions, add  -DLLVM_ENABLE_ASSERTIONS=ON

Modified:
    llvm/trunk/docs/LibFuzzer.rst

Modified: llvm/trunk/docs/LibFuzzer.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LibFuzzer.rst?rev=272088&r1=272087&r2=272088&view=diff
==============================================================================
--- llvm/trunk/docs/LibFuzzer.rst (original)
+++ llvm/trunk/docs/LibFuzzer.rst Tue Jun  7 20:31:40 2016
@@ -722,12 +722,12 @@ you will eventually run out of RAM (see
 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




More information about the llvm-commits mailing list