@@ -6,29 +6,31 @@ pub(crate) fn target() -> Target {
6
6
Target {
7
7
llvm_target : "armv7a-none-eabihf" . into ( ) ,
8
8
metadata : crate :: spec:: TargetMetadata {
9
- description : None ,
10
- tier : None ,
11
- host_tools : None ,
12
- std : None ,
9
+ description : Some ( "Armv7-A Cortex-A9 VEX V5 Brain, VEXos" . into ( ) ) ,
10
+ tier : Some ( 3 ) ,
11
+ host_tools : Some ( false ) ,
12
+ std : Some ( true ) ,
13
13
} ,
14
14
pointer_width : 32 ,
15
15
data_layout : "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64" . into ( ) ,
16
16
arch : "arm" . into ( ) ,
17
17
options : TargetOptions {
18
+ os : "vexos" . into ( ) ,
19
+ vendor : "vex" . into ( ) ,
20
+ exe_suffix : "elf" . into ( ) ,
18
21
cpu : "cortex-a9" . into ( ) ,
19
22
abi : "eabihf" . into ( ) ,
20
- linker_flavor : LinkerFlavor :: Gnu ( Cc :: No , Lld :: Yes ) ,
23
+ features : "+v7,+neon,+vfp3,+thumb2,+thumb-mode" . into ( ) ,
21
24
linker : Some ( "rust-lld" . into ( ) ) ,
25
+ linker_flavor : LinkerFlavor :: Gnu ( Cc :: No , Lld :: Yes ) ,
22
26
link_script : Some ( LINK_SCRIPT . into ( ) ) ,
23
- features : "+v7,+thumb2,+vfp3,+neon" . into ( ) ,
27
+ panic_strategy : PanicStrategy :: Abort ,
24
28
relocation_model : RelocModel :: Static ,
25
- disable_redzone : true ,
29
+ c_enum_min_bits : Some ( 8 ) ,
26
30
max_atomic_width : Some ( 64 ) ,
27
- panic_strategy : PanicStrategy :: Abort ,
31
+ disable_redzone : true ,
28
32
emit_debug_gdb_scripts : false ,
29
- c_enum_min_bits : Some ( 8 ) ,
30
- os : "vexos" . into ( ) ,
31
- vendor : "vex" . into ( ) ,
33
+ has_thumb_interworking : true ,
32
34
..Default :: default ( )
33
35
} ,
34
36
}
0 commit comments