Skip to content

Commit 11bfb78

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 0321e73 commit 11bfb78

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
@@ -19,6 +19,7 @@ pub(crate) fn target() -> Target {
1919
llvm_abiname: "lp64d".into(),
2020
max_atomic_width: Some(64),
2121
crt_static_default: false,
22+
direct_access_external_data: Some(false),
2223
..base::linux_musl::opts()
2324
},
2425
}

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

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub(crate) fn target() -> Target {
1717
features: "+f,+d".into(),
1818
llvm_abiname: "lp64d".into(),
1919
max_atomic_width: Some(64),
20+
direct_access_external_data: Some(false),
2021
..base::linux_ohos::opts()
2122
},
2223
}

0 commit comments

Comments
 (0)