about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-12-25 17:25:59 +0800
committerGitHub <noreply@github.com>2024-12-25 17:25:59 +0800
commitd04f8bd00c3921c184c83fc8ff73b70e3d5fb2d6 (patch)
treebfe8a92230cb483e32d1cdd5b7e0d55d5727c5a8 /compiler
parentdb3404a896800b092b3ef2cca91df3203ab3e719 (diff)
parent652e48b38d9c210538e8ca37cf5394786d9dbfcb (diff)
downloadrust-d04f8bd00c3921c184c83fc8ff73b70e3d5fb2d6.tar.gz
rust-d04f8bd00c3921c184c83fc8ff73b70e3d5fb2d6.zip
Rollup merge of #134751 - heiher:loong-ohos-lsx, r=jieyouxu
Enable LSX feature for LoongArch OpenHarmony target
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_target/src/spec/targets/loongarch64_unknown_linux_ohos.rs2
1 files changed, 1 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 12e026294cf..11d05db6b0a 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
@@ -15,7 +15,7 @@ pub(crate) fn target() -> Target {
         options: TargetOptions {
             code_model: Some(CodeModel::Medium),
             cpu: "generic".into(),
-            features: "+f,+d".into(),
+            features: "+f,+d,+lsx".into(),
             llvm_abiname: "lp64d".into(),
             max_atomic_width: Some(64),
             supported_sanitizers: SanitizerSet::ADDRESS