Skip to content

Commit b1579e8

Browse files
committed
Setting up indirect access to external data for loongarch64-linux-{musl,ohos}
In issue #118053, the `loongarch64-unknown-linux-gnu` target needs indirection to access external data, and so do the `loongarch64-unknown-linux-musl` and `loongarch64-unknown-linux-ohos` targets.
1 parent ecf2d1f commit b1579e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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+
direct_access_external_data: Some(false),
2728
..base::linux_musl::opts()
2829
},
2930
}

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+
direct_access_external_data: Some(false),
2526
..base::linux_ohos::opts()
2627
},
2728
}

0 commit comments

Comments
 (0)