From e11b4aef3fce51b0fd6bff7c64ee8a6dc00dd02e Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Mon, 8 Feb 2021 16:13:44 +0100 Subject: [PATCH] doc: show how to build the fuzzers BUG=None No-Try: true Change-Id: I5a5007263c88678d76edc97fbcda96ff967071df Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/206420 Commit-Queue: Philipp Hancke Reviewed-by: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#33293} --- docs/native-code/development/index.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/native-code/development/index.md b/docs/native-code/development/index.md index 3c7a5342da..c51c92a567 100644 --- a/docs/native-code/development/index.md +++ b/docs/native-code/development/index.md @@ -98,6 +98,12 @@ configuration untouched (stored in the args.gn file), do: $ gn clean out/Default ``` +To build the fuzzers residing in the [test/fuzzers][fuzzers] directory, use +``` +$ gn gen out/fuzzers --args='use_libfuzzer=true optimize_for_fuzzing=true' +``` +Depending on the fuzzer additional arguments like `is_asan`, `is_msan` or `is_ubsan_security` might be required. + See the [GN][gn-doc] documentation for all available options. There are also more platform specific tips on the [Android][webrtc-android-development] and [iOS][webrtc-ios-development] instructions. @@ -268,3 +274,4 @@ Target name `turnserver`. Used for unit tests. [rfc-5766]: https://tools.ietf.org/html/rfc5766 [m80-log]: https://webrtc.googlesource.com/src/+log/branch-heads/3987 [m80]: https://webrtc.googlesource.com/src/+/branch-heads/3987 +[fuzzers]: https://chromium.googlesource.com/external/webrtc/+/refs/heads/master/test/fuzzers/