Skip to content

Commit 2848aad

Browse files
langston-barrettcompiler-errors
authored andcommitted
Mention debug assertions
1 parent f49ec95 commit 2848aad

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/fuzzing.md

+10
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)