diff --git a/compiler/rustc_target/src/spec/targets/aarch64_apple_darwin.rs b/compiler/rustc_target/src/spec/targets/aarch64_apple_darwin.rs index adee6f5fe9943..8c7bce449715c 100644 --- a/compiler/rustc_target/src/spec/targets/aarch64_apple_darwin.rs +++ b/compiler/rustc_target/src/spec/targets/aarch64_apple_darwin.rs @@ -22,6 +22,7 @@ pub(crate) fn target() -> Target { max_atomic_width: Some(128), // FIXME: The leak sanitizer currently fails the tests, see #88132. supported_sanitizers: SanitizerSet::ADDRESS | SanitizerSet::CFI | SanitizerSet::THREAD, + stable_sanitizers: SanitizerSet::ADDRESS, ..opts }, } diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md index 0492327911fe2..acf7eaf5b6eb5 100644 --- a/src/doc/rustc/src/codegen-options/index.md +++ b/src/doc/rustc/src/codegen-options/index.md @@ -539,6 +539,7 @@ of these sanitizers: | Target | Sanitizers | |-----------------------------|-----------------| +| aarch64-apple-darwin | address | | aarch64-unknown-linux-gnu | address, leak | | i686-pc-windows-msvc | address | | i686-unknown-linux-gnu | address | diff --git a/src/doc/rustc/src/sanitizers.md b/src/doc/rustc/src/sanitizers.md index fc5bce90bc0e4..80e085a17132d 100644 --- a/src/doc/rustc/src/sanitizers.md +++ b/src/doc/rustc/src/sanitizers.md @@ -20,6 +20,7 @@ of these sanitizers: | Target | Sanitizers | |-----------------------------|-----------------| +| aarch64-apple-darwin | address | | aarch64-unknown-linux-gnu | address, leak | | i686-pc-windows-msvc | address | | i686-unknown-linux-gnu | address |