summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-06-08 01:31:40 +0000
committerKostya Serebryany <kcc@google.com>2016-06-08 01:31:40 +0000
commitd4ae23b4832483cc1df0bd7ae3e2c4de992debc5 (patch)
tree26e39e77dafeba2e074d70229defa62d0f8c71ec
parent203451742f2f17c533f53158b781bd2d5b1fe0ac (diff)
downloadbcm5719-llvm-d4ae23b4832483cc1df0bd7ae3e2c4de992debc5.tar.gz
bcm5719-llvm-d4ae23b4832483cc1df0bd7ae3e2c4de992debc5.zip
[libFuzzer] docs: merge two lines with cmake instructions, add -DLLVM_ENABLE_ASSERTIONS=ON
llvm-svn: 272088
-rw-r--r--llvm/docs/LibFuzzer.rst11
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
OpenPOWER on IntegriCloud