Skip to content

Commit 2759a7d

Browse files
authored
Rollup merge of #112584 - loongarch-rs:remove-env, r=petrochenkov
loongarch64-none*: Remove environment component from llvm target A warning is reported when the LLVM triple-implied ABI conflicts with the provided target-abi. ``` warning: triple-implied ABI conflicts with provided target-abi ‘lp64s', using target-abi ``` Specifically, the ABI hint comes from the environment component of the triple. When only the target-abi is provided and no environment, there is no conflict. This PR removes the environment component from the LLVM target name of the `loongarch64-unknown-none-softfloat` target.
2 parents 7b0eac4 + 22a4525 commit 2759a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_target/src/spec/loongarch64_unknown_none_softfloat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use super::{Target, TargetOptions};
33

44
pub fn target() -> Target {
55
Target {
6-
llvm_target: "loongarch64-unknown-none-softfloat".into(),
6+
llvm_target: "loongarch64-unknown-none".into(),
77
pointer_width: 64,
88
data_layout: "e-m:e-p:64:64-i64:64-i128:128-n64-S128".into(),
99
arch: "loongarch64".into(),

0 commit comments

Comments
 (0)