We have code such as this in our codebase that encodes an allow-list of targets that support for a given sanitizer:
|
const ASAN_SUPPORTED_TARGETS: &[&str] = &[ |
Instead, the code should be adjusted to only encode such support table in the target definitions. The compiler otherwise should be pretty agnostic to both the list of available sanitizers (outside of the backend) and targets that support it.