Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751649 - dev-lang/rust: Add use flag for `sanitizers` option
Summary: dev-lang/rust: Add use flag for `sanitizers` option
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial with 1 vote (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-29 04:54 UTC by Brandon Falk
Modified: 2020-11-20 12:16 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 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.