r311345 - [clang-proto-fuzzer] Update README.

Matt Morehouse via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 21 09:18:43 PDT 2017


Author: morehouse
Date: Mon Aug 21 09:18:43 2017
New Revision: 311345

URL: http://llvm.org/viewvc/llvm-project?rev=311345&view=rev
Log:
[clang-proto-fuzzer] Update README.

Add instructions on how to modify the compiler invocation.

Modified:
    cfe/trunk/tools/clang-fuzzer/README.txt

Modified: cfe/trunk/tools/clang-fuzzer/README.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-fuzzer/README.txt?rev=311345&r1=311344&r2=311345&view=diff
==============================================================================
--- cfe/trunk/tools/clang-fuzzer/README.txt (original)
+++ cfe/trunk/tools/clang-fuzzer/README.txt Mon Aug 21 09:18:43 2017
@@ -29,6 +29,11 @@ Example:
     -DLLVM_USE_SANITIZE_COVERAGE=YES -DLLVM_USE_SANITIZER=Address
   ninja clang-fuzzer
 
+======================
+ Running clang-fuzzer
+======================
+  bin/clang-fuzzer CORPUS_DIR
+
 
 =======================================================
  Building clang-proto-fuzzer (Linux-only instructions)
@@ -62,14 +67,16 @@ Example:
 This directory also contains a Dockerfile which sets up all required
 dependencies and builds the fuzzers.
 
-=====================
- Running the fuzzers
-=====================
-clang-fuzzer:
-  bin/clang-fuzzer CORPUS_DIR
-
-clang-proto-fuzzer:
+============================
+ Running clang-proto-fuzzer
+============================
   bin/clang-proto-fuzzer CORPUS_DIR
 
-Translating a clang-proto-fuzzer corpus output to C++:
+Arguments can be specified after -ignore_remaining_args=1 to modify the compiler
+invocation.  For example, the following command line will fuzz LLVM with a
+custom optimization level and target triple:
+  bin/clang-proto-fuzzer CORPUS_DIR -ignore_remaining_args=1 -O3 -triple \
+      arm64apple-ios9
+
+To translate a clang-proto-fuzzer corpus output to C++:
   bin/clang-proto-to-cxx CORPUS_OUTPUT_FILE




More information about the cfe-commits mailing list