Mention debug assertions

This commit is contained in:
Langston Barrett 2023-03-16 17:36:38 -04:00 committed by Michael Goulet
parent 7dedcf9ade
commit 0eb0d25f26

View file

@ -120,6 +120,16 @@ target-cpu=native` or even PGO/BOLT to squeeze out a few more executions per
second. Of course, it's best to try multiple build configurations and see
what actually results in superior throughput.
You may want to build rustc from source with debug assertions to find
additional bugs, though this is a trade-off: it can slow down fuzzing by
requiring extra work for every execution. To enable debug assertions, add this
to `config.toml` when compiling rustc:
```toml
[rust]
debug-assertions = true
```
## Existing projects
- [fuzz-rustc][fuzz-rustc] demonstrates how to fuzz rustc with libfuzzer