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 <philipp.hancke@googlemail.com>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33293}
This commit is contained in:
Philipp Hancke 2021-02-08 16:13:44 +01:00 committed by Commit Bot
parent 86d37256c9
commit e11b4aef3f

View file

@ -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/