Skip to content

Commit 26c7838

Browse files
authored
Rollup merge of #89170 - rusticstuff:aarch64_macos_disable_leak_sanitizer, r=petrochenkov
Disable the leak sanitizer on Macos aarch64 for now It is currently broken, see #88132.
2 parents 3cb28de + 59e37c8 commit 26c7838

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

compiler/rustc_target/src/spec/aarch64_apple_darwin.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ pub fn target() -> Target {
44
let mut base = super::apple_base::opts("macos");
55
base.cpu = "apple-a12".to_string();
66
base.max_atomic_width = Some(128);
7-
base.supported_sanitizers = SanitizerSet::ADDRESS | SanitizerSet::LEAK | SanitizerSet::THREAD;
7+
8+
// FIXME: The leak sanitizer currently fails the tests, see #88132.
9+
base.supported_sanitizers = SanitizerSet::ADDRESS | SanitizerSet::THREAD;
810

911
base.pre_link_args.insert(LinkerFlavor::Gcc, vec!["-arch".to_string(), "arm64".to_string()]);
1012
base.link_env_remove.extend(super::apple_base::macos_link_env_remove());

src/tools/compiletest/src/util.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ pub const ASAN_SUPPORTED_TARGETS: &[&str] = &[
9696
];
9797

9898
pub const LSAN_SUPPORTED_TARGETS: &[&str] = &[
99-
"aarch64-apple-darwin",
99+
// FIXME: currently broken, see #88132
100+
// "aarch64-apple-darwin",
100101
"aarch64-unknown-linux-gnu",
101102
"x86_64-apple-darwin",
102103
"x86_64-unknown-linux-gnu",

0 commit comments

Comments
 (0)