1
- use std:: { io, fs, env, path:: PathBuf } ;
2
- use crate :: spec:: { LinkerFlavor , LldFlavor , LinkArgs , RelocModel } ;
1
+ use crate :: spec:: { LinkArgs , LinkerFlavor , LldFlavor , RelocModel } ;
3
2
use crate :: spec:: { Target , TargetOptions , TargetResult } ;
3
+ use std:: { env, fs, io, path:: PathBuf } ;
4
4
5
5
// The PSP has custom linker requirements.
6
6
const LINKER_SCRIPT : & str = include_str ! ( "./mipsel_sony_psp_linker_script.ld" ) ;
@@ -12,9 +12,7 @@ fn write_script() -> io::Result<PathBuf> {
12
12
}
13
13
14
14
pub fn target ( ) -> TargetResult {
15
- let script = write_script ( ) . map_err ( |e| {
16
- format ! ( "failed to write link script: {}" , e)
17
- } ) ?;
15
+ let script = write_script ( ) . map_err ( |e| format ! ( "failed to write link script: {}" , e) ) ?;
18
16
19
17
let mut pre_link_args = LinkArgs :: new ( ) ;
20
18
pre_link_args. insert (
@@ -49,9 +47,7 @@ pub fn target() -> TargetResult {
49
47
features : "+single-float" . to_string ( ) ,
50
48
51
49
// PSP does not support trap-on-condition instructions.
52
- llvm_args : vec ! [
53
- "-mno-check-zero-division" . to_string( ) ,
54
- ] ,
50
+ llvm_args : vec ! [ "-mno-check-zero-division" . to_string( ) ] ,
55
51
pre_link_args,
56
52
..Default :: default ( )
57
53
} ,
0 commit comments