File tree 2 files changed +17
-0
lines changed
compiler/rustc_target/src/spec
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -686,6 +686,7 @@ supported_targets! {
686
686
( "armv7-unknown-freebsd" , armv7_unknown_freebsd) ,
687
687
( "i686-unknown-freebsd" , i686_unknown_freebsd) ,
688
688
( "powerpc64-unknown-freebsd" , powerpc64_unknown_freebsd) ,
689
+ ( "powerpc64le-unknown-freebsd" , powerpc64le_unknown_freebsd) ,
689
690
( "x86_64-unknown-freebsd" , x86_64_unknown_freebsd) ,
690
691
691
692
( "x86_64-unknown-dragonfly" , x86_64_unknown_dragonfly) ,
Original file line number Diff line number Diff line change
1
+ use crate :: spec:: { LinkerFlavor , Target , TargetOptions } ;
2
+
3
+ pub fn target ( ) -> Target {
4
+ let mut base = super :: freebsd_base:: opts ( ) ;
5
+ base. cpu = "ppc64le" . to_string ( ) ;
6
+ base. pre_link_args . get_mut ( & LinkerFlavor :: Gcc ) . unwrap ( ) . push ( "-m64" . to_string ( ) ) ;
7
+ base. max_atomic_width = Some ( 64 ) ;
8
+
9
+ Target {
10
+ llvm_target : "powerpc64le-unknown-freebsd" . to_string ( ) ,
11
+ pointer_width : 64 ,
12
+ data_layout : "e-m:e-i64:64-n32:64" . to_string ( ) ,
13
+ arch : "powerpc64" . to_string ( ) ,
14
+ options : TargetOptions { mcount : "_mcount" . to_string ( ) , ..base } ,
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments