Skip to content

Sanitizer support allow-list should not be baked into the compiler (outside of the built-in targets) #81802

Closed
@nagisa

Description

@nagisa

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.

Metadata

Metadata

Assignees

Labels

A-sanitizersArea: Sanitizers for correctness and code qualityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions