File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
compiler/rustc_target/src/spec Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -1402,6 +1402,7 @@ supported_targets! {
1402
1402
( "i686-unknown-linux-gnu" , i686_unknown_linux_gnu) ,
1403
1403
( "i586-unknown-linux-gnu" , i586_unknown_linux_gnu) ,
1404
1404
( "loongarch64-unknown-linux-gnu" , loongarch64_unknown_linux_gnu) ,
1405
+ ( "loongarch64-unknown-linux-musl" , loongarch64_unknown_linux_musl) ,
1405
1406
( "m68k-unknown-linux-gnu" , m68k_unknown_linux_gnu) ,
1406
1407
( "csky-unknown-linux-gnuabiv2" , csky_unknown_linux_gnuabiv2) ,
1407
1408
( "csky-unknown-linux-gnuabiv2hf" , csky_unknown_linux_gnuabiv2hf) ,
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
+ pointer_width : 64 ,
7
+ data_layout : "e-m:e-p:64:64-i64:64-i128:128-n64-S128" . into ( ) ,
8
+ arch : "loongarch64" . into ( ) ,
9
+ options : TargetOptions {
10
+ cpu : "generic" . into ( ) ,
11
+ features : "+f,+d" . into ( ) ,
12
+ llvm_abiname : "lp64d" . into ( ) ,
13
+ max_atomic_width : Some ( 64 ) ,
14
+ crt_static_default : false ,
15
+ ..base:: linux_musl:: opts ( )
16
+ } ,
17
+ }
18
+ }
Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ target | std | notes
167
167
` i686-unknown-freebsd ` | ✓ | 32-bit FreeBSD [ ^ x86_32-floats-return-ABI ]
168
168
` i686-unknown-linux-musl ` | ✓ | 32-bit Linux with MUSL [ ^ x86_32-floats-return-ABI ]
169
169
[ ` i686-unknown-uefi ` ] ( platform-support/unknown-uefi.md ) | * | 32-bit UEFI
170
+ [ ` loongarch64-unknown-linux-musl ` ] ( platform-support/loongarch-linux.md ) | ? | | LoongArch64 Linux (LP64D ABI)
170
171
[ ` loongarch64-unknown-none ` ] ( platform-support/loongarch-none.md ) | * | | LoongArch64 Bare-metal (LP64D ABI)
171
172
[ ` loongarch64-unknown-none-softfloat ` ] ( platform-support/loongarch-none.md ) | * | | LoongArch64 Bare-metal (LP64S ABI)
172
173
[ ` nvptx64-nvidia-cuda ` ] ( platform-support/nvptx64-nvidia-cuda.md ) | * | --emit=asm generates PTX code that [ runs on NVIDIA GPUs]
You can’t perform that action at this time.
0 commit comments