Skip to content

Commit 67ed9fa

Browse files
committed
Enable XRay instrumentation for LoongArch Linux targets
1 parent 03983fb commit 67ed9fa

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Diff for: compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_gnu.rs

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub(crate) fn target() -> Target {
2323
| SanitizerSet::LEAK
2424
| SanitizerSet::MEMORY
2525
| SanitizerSet::THREAD,
26+
supports_xray: true,
2627
direct_access_external_data: Some(false),
2728
..base::linux_gnu::opts()
2829
},

Diff for: compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_musl.rs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ pub(crate) fn target() -> Target {
2424
| SanitizerSet::LEAK
2525
| SanitizerSet::MEMORY
2626
| SanitizerSet::THREAD,
27+
supports_xray: true,
2728
direct_access_external_data: Some(false),
2829
..base::linux_musl::opts()
2930
},

Diff for: compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_ohos.rs

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ pub(crate) fn target() -> Target {
2222
| SanitizerSet::LEAK
2323
| SanitizerSet::MEMORY
2424
| SanitizerSet::THREAD,
25+
supports_xray: true,
2526
direct_access_external_data: Some(false),
2627
..base::linux_ohos::opts()
2728
},

0 commit comments

Comments
 (0)