Mention debug assertions

This commit is contained in:
Langston Barrett 2023-03-16 17:36:38 -04:00 committed by Michael Goulet
parent f49ec954c5
commit 2848aadbff
1 changed files with 10 additions and 0 deletions

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 second. Of course, it's best to try multiple build configurations and see
what actually results in superior throughput. 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 ## Existing projects
- [fuzz-rustc][fuzz-rustc] demonstrates how to fuzz rustc with libfuzzer - [fuzz-rustc][fuzz-rustc] demonstrates how to fuzz rustc with libfuzzer