Skip to content

Commit 7981aca

Browse files
authored
Rollup merge of #132140 - heiher:loong-lsx, r=Urgau
Enable LSX feature for LoongArch Linux targets Enable 128-bit vector (LSX) feature for `loongarch64-unknown-linux-{gnu, musl}` targets. try-job: dist-loongarch64-linux try-job: dist-loongarch64-musl
2 parents c26280a + baa3b6d commit 7981aca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_gnu.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub(crate) fn target() -> Target {
1515
options:TargetOptions{
1616
code_model:Some(CodeModel::Medium),
1717
cpu:"generic".into(),
18-
features:"+f,+d".into(),
18+
features:"+f,+d,+lsx".into(),
1919
llvm_abiname:"lp64d".into(),
2020
max_atomic_width:Some(64),
2121
supported_sanitizers:SanitizerSet::ADDRESS

‎compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_musl.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub(crate) fn target() -> Target {
1515
options:TargetOptions{
1616
code_model:Some(CodeModel::Medium),
1717
cpu:"generic".into(),
18-
features:"+f,+d".into(),
18+
features:"+f,+d,+lsx".into(),
1919
llvm_abiname:"lp64d".into(),
2020
max_atomic_width:Some(64),
2121
crt_static_default:false,

0 commit comments

Comments
 (0)