rust-lang / cargo-bisect-rustc

Bisects rustc, either nightlies or CI artifacts
https://rust-lang.github.io/cargo-bisect-rustc/
Apache License 2.0
174 stars 55 forks source link

Bisect with thread sanitizer option #204

Closed Lee-Janggun closed 1 year ago

Lee-Janggun commented 1 year ago

Is there a way to preform cargo-bisect-rustc with thread sanitizer enabled? I have a regression of test case that only happens with sanitizers enabled, but since cargo-bisect-rustc does not seem to have sanitizer options, needed to hand-bisect my case.

ehuss commented 1 year ago

You should be able to use RUSTFLAGS="-Zsanitizer=thread" like you would normally. If your use case needs build-std, then you'll also need to pass -c rust-src to download the std source.

Can you say more if that doesn't help?

Lee-Janggun commented 1 year ago

I was missing the build-std option. Thank you very much!