diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2024-10-18 12:00:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-18 12:00:54 +0100 |
| commit | 9a664a0a96653cc6bbd059bc1f1c51f746a4d523 (patch) | |
| tree | 839a12e0c54a4992f2ea04addf9b307417f362da | |
| parent | af85d5280a9de1f6bb504f74036ad994905d77dc (diff) | |
| parent | 275ec06900b757dc6b3d184715f84b9ed4c92d97 (diff) | |
| download | rust-9a664a0a96653cc6bbd059bc1f1c51f746a4d523.tar.gz rust-9a664a0a96653cc6bbd059bc1f1c51f746a4d523.zip | |
Rollup merge of #131874 - heiher:loong-ohos-medium, r=jieyouxu
Default to the medium code model on OpenHarmony LoongArch target The context for this is #130266: setting the medium code model for the `loongarch64-linux-ohos` target. r? ```@jieyouxu```
| -rw-r--r-- | compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_ohos.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_ohos.rs b/compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_ohos.rs index 785c58f3ab7..12e026294cf 100644 --- a/compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_ohos.rs +++ b/compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_ohos.rs @@ -1,4 +1,4 @@ -use crate::spec::{SanitizerSet, Target, TargetOptions, base}; +use crate::spec::{CodeModel, SanitizerSet, Target, TargetOptions, base}; pub(crate) fn target() -> Target { Target { @@ -13,6 +13,7 @@ pub(crate) fn target() -> Target { data_layout: "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128".into(), arch: "loongarch64".into(), options: TargetOptions { + code_model: Some(CodeModel::Medium), cpu: "generic".into(), features: "+f,+d".into(), llvm_abiname: "lp64d".into(), |
