Skip to content

Commit 01b40e0

Browse files
authored
default to --sanitizer address (#46)
1 parent 94e7512 commit 01b40e0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

book/src/features/rust-stable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
```bash
66
# does not require nightly
7-
$ cargo bolero test my_test_target
7+
$ cargo bolero test my_test_target --sanitizer NONE
88
```
99

1010
## Sanitizer support

cargo-bolero/src/project.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use structopt::StructOpt;
66
#[derive(Debug, StructOpt)]
77
pub struct Project {
88
/// Build with the sanitizer enabled
9-
#[structopt(short, long)]
9+
#[structopt(short, long, default_value = "address")]
1010
sanitizer: Vec<String>,
1111

1212
/// Build for the target triple
@@ -144,6 +144,7 @@ impl Project {
144144
} else {
145145
None
146146
})
147+
// https://github.com/rust-lang/rust/issues/47071
147148
.chain(if self.release() {
148149
Some("-Ccodegen-units=1")
149150
} else {

0 commit comments

Comments
 (0)