diff options
author | Matt Morehouse <mascasa@google.com> | 2017-08-21 16:18:43 +0000 |
---|---|---|
committer | Matt Morehouse <mascasa@google.com> | 2017-08-21 16:18:43 +0000 |
commit | bf6c9bb84b75072bcbb60ce66b06082c427fcb29 (patch) | |
tree | d2099ef407e06bcfa079fabdcebb482b4ee94498 | |
parent | 4aa5e10fcc0b1546ce33c1b60f9cfd6db3e42f81 (diff) | |
download | bcm5719-llvm-bf6c9bb84b75072bcbb60ce66b06082c427fcb29.tar.gz bcm5719-llvm-bf6c9bb84b75072bcbb60ce66b06082c427fcb29.zip |
[clang-proto-fuzzer] Update README.
Add instructions on how to modify the compiler invocation.
llvm-svn: 311345
-rw-r--r-- | clang/tools/clang-fuzzer/README.txt | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/clang/tools/clang-fuzzer/README.txt b/clang/tools/clang-fuzzer/README.txt index 35476d33c5a..66a6a6332cd 100644 --- a/clang/tools/clang-fuzzer/README.txt +++ b/clang/tools/clang-fuzzer/README.txt @@ -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 |