File tree 3 files changed +21
-0
lines changed
compiler/rustc_target/src/spec 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ use crate :: spec:: { base, Target , TargetOptions } ;
2
+
3
+ pub fn target ( ) -> Target {
4
+ Target {
5
+ llvm_target : "loongarch64-unknown-linux-musl" . into ( ) ,
6
+ description : None ,
7
+ pointer_width : 64 ,
8
+ data_layout : "e-m:e-p:64:64-i64:64-i128:128-n64-S128" . into ( ) ,
9
+ arch : "loongarch64" . into ( ) ,
10
+ options : TargetOptions {
11
+ cpu : "generic" . into ( ) ,
12
+ features : "+f,+d" . into ( ) ,
13
+ llvm_abiname : "lp64d" . into ( ) ,
14
+ max_atomic_width : Some ( 64 ) ,
15
+ crt_static_default : false ,
16
+ ..base:: linux_musl:: opts ( )
17
+ } ,
18
+ }
19
+ }
Original file line number Diff line number Diff line change @@ -1018,6 +1018,7 @@ supported_targets! {
1018
1018
( "i686-unknown-linux-gnu" , i686_unknown_linux_gnu) ,
1019
1019
( "i586-unknown-linux-gnu" , i586_unknown_linux_gnu) ,
1020
1020
( "loongarch64-unknown-linux-gnu" , loongarch64_unknown_linux_gnu) ,
1021
+ ( "loongarch64-unknown-linux-musl" , loongarch64_unknown_linux_musl) ,
1021
1022
( "m68k-unknown-linux-gnu" , m68k_unknown_linux_gnu) ,
1022
1023
( "mips-unknown-linux-gnu" , mips_unknown_linux_gnu) ,
1023
1024
( "mips64-unknown-linux-gnuabi64" , mips64_unknown_linux_gnuabi64) ,
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ target | std | notes
153
153
` i686-unknown-freebsd ` | ✓ | 32-bit FreeBSD
154
154
` i686-unknown-linux-musl ` | ✓ | 32-bit Linux with MUSL
155
155
[ ` i686-unknown-uefi ` ] ( platform-support/unknown-uefi.md ) | * | 32-bit UEFI
156
+ [ ` loongarch64-unknown-linux-musl ` ] ( platform-support/loongarch-linux.md ) | ? | | LoongArch64 Linux (LP64D ABI)
156
157
[ ` loongarch64-unknown-none ` ] ( platform-support/loongarch-none.md ) | * | | LoongArch64 Bare-metal (LP64D ABI)
157
158
[ ` loongarch64-unknown-none-softfloat ` ] ( platform-support/loongarch-none.md ) | * | | LoongArch64 Bare-metal (LP64S ABI)
158
159
` mips-unknown-linux-musl ` | ✓ | MIPS Linux with MUSL
You can’t perform that action at this time.
0 commit comments