Skip to content

Commit

Permalink
Unrolled build for rust-lang#121291
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#121291 - heiher:revert-medium-cmodel, r=Nilstrieb

target: Revert default to the medium code model on LoongArch targets

This reverts commit 35dad14.

Fixes rust-lang#121289
  • Loading branch information
rust-timer authored Feb 20, 2024
2 parents 2b43e75 + 9c32a7d commit 6db8721
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::spec::{base, CodeModel, Target, TargetOptions};
use crate::spec::{base, Target, TargetOptions};

pub fn target() -> Target {
Target {
Expand All @@ -7,7 +7,6 @@ pub fn target() -> Target {
data_layout: "e-m:e-p:64:64-i64:64-i128:128-n64-S128".into(),
arch: "loongarch64".into(),
options: TargetOptions {
code_model: Some(CodeModel::Medium),
cpu: "generic".into(),
features: "+f,+d".into(),
llvm_abiname: "lp64d".into(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub fn target() -> Target {
max_atomic_width: Some(64),
relocation_model: RelocModel::Static,
panic_strategy: PanicStrategy::Abort,
code_model: Some(CodeModel::Medium),
code_model: Some(CodeModel::Small),
..Default::default()
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn target() -> Target {
max_atomic_width: Some(64),
relocation_model: RelocModel::Static,
panic_strategy: PanicStrategy::Abort,
code_model: Some(CodeModel::Medium),
code_model: Some(CodeModel::Small),
..Default::default()
},
}
Expand Down

0 comments on commit 6db8721

Please sign in to comment.