Skip to content

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

compiler/rustc_target/src/spec/targets/aarch64_apple_darwin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub(crate) fn target() -> Target {
2222
max_atomic_width: Some(128),
2323
// FIXME: The leak sanitizer currently fails the tests, see #88132.
2424
supported_sanitizers: SanitizerSet::ADDRESS | SanitizerSet::CFI | SanitizerSet::THREAD,
25+
supports_xray: true,
2526
..opts
2627
},
2728
}

compiler/rustc_target/src/spec/targets/x86_64_apple_darwin.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub(crate) fn target() -> Target {
2323
| SanitizerSet::CFI
2424
| SanitizerSet::LEAK
2525
| SanitizerSet::THREAD,
26+
supports_xray: true,
2627
..opts
2728
},
2829
}

tests/ui/instrument-xray/target-not-supported.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Verifies that `-Z instrument-xray` cannot be used with unsupported targets,
22
//
33
//@ needs-llvm-components: x86
4-
//@ compile-flags: -Z instrument-xray --target x86_64-apple-darwin
4+
//@ compile-flags: -Z instrument-xray --target x86_64-pc-windows-msvc
55

66
#![feature(no_core)]
77
#![no_core]

0 commit comments

Comments
 (0)