diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-09-03 23:08:09 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-03 23:08:09 +1000 |
| commit | 1ec369ee2491f03ad121e1359c29fd6fc1af41ac (patch) | |
| tree | e84990128de2353cb790dc46178d8d5fc2f914ba /compiler | |
| parent | 8746c2302c5e5a1a0eb575d7400d596f10c8e922 (diff) | |
| parent | 0b1bc65002371c36b6e796f8933f8cb96e5d31d8 (diff) | |
| download | rust-1ec369ee2491f03ad121e1359c29fd6fc1af41ac.tar.gz rust-1ec369ee2491f03ad121e1359c29fd6fc1af41ac.zip | |
Rollup merge of #146032 - heiher:loong64-none-no-lsx, r=lqd
Explicity disable LSX feature for `loongarch64-unknown-none` target The `loongarch64-unknown-none` target is a bare-metal target with hardware floating-point support and should not enable SIMD extensions by default. However, LLVM's LoongArch64 backend enables LSX implicitly, inadvertently activating SIMD instructions for this target. This patch explicitly disable LSX feature to prevent unintended SIMD usage.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_target/src/spec/targets/loongarch64_unknown_none.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/targets/loongarch64_unknown_none.rs b/compiler/rustc_target/src/spec/targets/loongarch64_unknown_none.rs index 91e3064aaed..b6a08958284 100644 --- a/compiler/rustc_target/src/spec/targets/loongarch64_unknown_none.rs +++ b/compiler/rustc_target/src/spec/targets/loongarch64_unknown_none.rs @@ -17,7 +17,7 @@ pub(crate) fn target() -> Target { arch: "loongarch64".into(), options: TargetOptions { cpu: "generic".into(), - features: "+f,+d".into(), + features: "+f,+d,-lsx".into(), linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes), linker: Some("rust-lld".into()), llvm_abiname: "lp64d".into(), |
