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.
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.