Added note in documentation
I added this note, because if you forget the `--target` flags, you get a really ugly error message. https://github.com/rust-lang/cargo/issues/10666
This commit is contained in:
parent
a7d6408b05
commit
30108ca15c
@ -22,7 +22,10 @@ This feature allows for use of one of following sanitizers:
|
||||
|
||||
To enable a sanitizer compile with `-Zsanitizer=address`,`-Zsanitizer=cfi`,
|
||||
`-Zsanitizer=hwaddress`, `-Zsanitizer=leak`, `-Zsanitizer=memory`,
|
||||
`-Zsanitizer=memtag`, or `-Zsanitizer=thread`.
|
||||
`-Zsanitizer=memtag`, or `-Zsanitizer=thread`. You might also need the `--target` and `build-std` flags. Example:
|
||||
```shell
|
||||
$ RUSTFLAGS=-Zsanitizer=address cargo build -Zbuild-std --target x86_64-unknown-linux-gnu
|
||||
```
|
||||
|
||||
# AddressSanitizer
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user