This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
compiler/rustc_target/src/spec Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -694,6 +694,7 @@ supported_targets! {
694
694
( "i686-unknown-openbsd" , i686_unknown_openbsd) ,
695
695
( "sparc64-unknown-openbsd" , sparc64_unknown_openbsd) ,
696
696
( "x86_64-unknown-openbsd" , x86_64_unknown_openbsd) ,
697
+ ( "powerpc-unknown-openbsd" , powerpc_unknown_openbsd) ,
697
698
698
699
( "aarch64-unknown-netbsd" , aarch64_unknown_netbsd) ,
699
700
( "armv6-unknown-netbsd-eabihf" , armv6_unknown_netbsd_eabihf) ,
Original file line number Diff line number Diff line change
1
+ use crate :: abi:: Endian ;
2
+ use crate :: spec:: Target ;
3
+
4
+ pub fn target ( ) -> Target {
5
+ let mut base = super :: openbsd_base:: opts ( ) ;
6
+ base. endian = Endian :: Big ;
7
+ base. max_atomic_width = Some ( 32 ) ;
8
+
9
+ Target {
10
+ llvm_target : "powerpc-unknown-openbsd" . to_string ( ) ,
11
+ pointer_width : 32 ,
12
+ data_layout : "E-m:e-p:32:32-i64:64-n32" . to_string ( ) ,
13
+ arch : "powerpc" . to_string ( ) ,
14
+ options : base,
15
+ }
16
+ }
Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ target | std | host | notes
198
198
` powerpc-unknown-linux-gnuspe ` | ✓ | | PowerPC SPE Linux
199
199
` powerpc-unknown-linux-musl ` | ? | |
200
200
` powerpc-unknown-netbsd ` | ✓ | ✓ |
201
+ ` powerpc-unknown-openbsd ` | ? | |
201
202
` powerpc-wrs-vxworks ` | ? | |
202
203
` powerpc-wrs-vxworks-spe ` | ? | |
203
204
` powerpc64-unknown-freebsd ` | ✓ | ✓ | PPC64 FreeBSD (ELFv1 and ELFv2)
You can’t perform that action at this time.
0 commit comments