Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 751649

Summary: dev-lang/rust: Add use flag for `sanitizers` option
Product: Gentoo Linux Reporter: Brandon Falk <bfalk>
Component: Current packagesAssignee: Gentoo Rust Project <rust>
Status: CONFIRMED ---    
Severity: trivial CC: gyakovlev, jstein, navi, O01eg, randy, sam, telans
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Brandon Falk 2020-10-29 04:54:27 UTC
Hello,

I currently use sanitizers for some of the Rust code I use, and right now the `sanitizers = false` flag in the Rust `config.toml` is hardcoded. I think just adding an IUSE for `sanitizers` and setting this line to `sanitizers = $(toml_usex sanitizers)` would do the trick?

Sorry, I'm a Gentoo user of about one week. I'd PR this but I don't know the correct process yet.

-B
Comment 1 Georgy Yakovlev archtester gentoo-dev 2020-10-31 18:46:51 UTC
it's a nightly only flag, as it's unstable feature available pretty much only on x86_64. So it will require USE=nightly and extra masking on arch profiles.
USE=nightly is required because without it you can't pass -Z flags at all.


I'm not opposed to adding this flag, but I need to look how it works with system-llvm.


I see that it builds compiler-rt and compiler-rt-sanitizers if this options if enabled, not sure what happens if we use system-llvm.