Skip to content

Commit a65b9c7

Browse files
langston-barrettcompiler-errors
authored andcommittedMar 17, 2023
Mention debug assertions
1 parent b17ff13 commit a65b9c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎src/fuzzing.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ target-cpu=native` or even PGO/BOLT to squeeze out a few more executions per
120120
second. Of course, it's best to try multiple build configurations and see
121121
what actually results in superior throughput.
122122

123+
You may want to build rustc from source with debug assertions to find
124+
additional bugs, though this is a trade-off: it can slow down fuzzing by
125+
requiring extra work for every execution. To enable debug assertions, add this
126+
to `config.toml` when compiling rustc:
127+
128+
```toml
129+
[rust]
130+
debug-assertions = true
131+
```
132+
123133
## Existing projects
124134

125135
- [fuzz-rustc][fuzz-rustc] demonstrates how to fuzz rustc with libfuzzer

0 commit comments

Comments
 (0)
Please sign in to comment.