RalfJung / cargo-careful

Execute Rust code carefully, with extra checking along the way
Apache License 2.0
382 stars 14 forks source link

Always set `--target` when sanitizer is used #17

Closed Jules-Bertholet closed 1 year ago

Jules-Bertholet commented 1 year ago

This ensures that the sanitizer flag is not passed to build scripts and proc macros.

RalfJung commented 1 year ago

Is it a known issue that -Zsanitizer requires an explicit --target?

Jules-Bertholet commented 1 year ago

Yes, it's mentioned here.

RalfJung commented 1 year ago

Ah, I found the cargo issue: https://github.com/rust-lang/cargo/issues/3739.