File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ fn main() {
13
13
fs:: copy (
14
14
format ! ( "bin/{}.a" , target) ,
15
15
out_dir. join ( "libcortex-m-rt.a" ) ,
16
- ) . unwrap ( ) ;
16
+ )
17
+ . unwrap ( ) ;
17
18
println ! ( "cargo:rustc-link-lib=static=cortex-m-rt" ) ;
18
19
}
19
20
@@ -34,7 +35,8 @@ fn main() {
34
35
/* Provides weak aliases (cf. PROVIDED) for device specific interrupt handlers */
35
36
/* This will usually be provided by a device crate generated using svd2rust (see `device.x`) */
36
37
INCLUDE device.x"#
37
- ) . unwrap ( ) ;
38
+ )
39
+ . unwrap ( ) ;
38
40
f
39
41
} else {
40
42
let mut f = File :: create ( out. join ( "link.x" ) ) . unwrap ( ) ;
@@ -55,9 +57,9 @@ INCLUDE device.x"#
55
57
println ! ( "cargo:rustc-cfg=armv8m" ) ;
56
58
240
57
59
} else {
58
- // Non ARM target. We assume you're just testing the syntax.
59
- // This value seems as soon as any
60
- 240
60
+ // Non ARM target. We assume you're just testing the syntax.
61
+ // This value seems as soon as any
62
+ 240
61
63
} ;
62
64
63
65
// checking the size of the interrupts portion of the vector table is sub-architecture dependent
@@ -71,7 +73,8 @@ handlers.");
71
73
"# ,
72
74
max_int_handlers * 4 + 0x40 ,
73
75
max_int_handlers
74
- ) . unwrap ( ) ;
76
+ )
77
+ . unwrap ( ) ;
75
78
76
79
println ! ( "cargo:rustc-link-search={}" , out. display( ) ) ;
77
80
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ use core::ptr;
13
13
use rt:: entry;
14
14
15
15
// This large static array uses most of .rodata
16
- static RODATA : [ u8 ; 48 * 1024 ] = [ 1u8 ; 48 * 1024 ] ;
16
+ static RODATA : [ u8 ; 48 * 1024 ] = [ 1u8 ; 48 * 1024 ] ;
17
17
18
18
// This large mutable array causes .data to use the rest of FLASH
19
19
// without also overflowing RAM.
20
- static mut DATA : [ u8 ; 16 * 1024 ] = [ 1u8 ; 16 * 1024 ] ;
20
+ static mut DATA : [ u8 ; 16 * 1024 ] = [ 1u8 ; 16 * 1024 ] ;
21
21
22
22
#[ entry]
23
23
fn main ( ) -> ! {
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ fn run_mode(mode: &'static str) {
8
8
config. mode = mode. parse ( ) . expect ( "Invalid mode" ) ;
9
9
config. src_base = PathBuf :: from ( format ! ( "tests/{}" , mode) ) ;
10
10
// config.link_deps(); // Populate config.target_rustcflags with dependencies on the path
11
- config. target_rustcflags =
12
- Some ( "-L target/debug -L target/debug/deps -C panic=abort --cfg feature=\" device\" " . to_owned ( ) ) ;
11
+ config. target_rustcflags = Some (
12
+ "-L target/debug -L target/debug/deps -C panic=abort --cfg feature=\" device\" " . to_owned ( ) ,
13
+ ) ;
13
14
// config.clean_rmeta(); // If your tests import the parent crate, this helps with E0464
14
15
15
16
compiletest:: run_tests ( & config) ;
You can’t perform that action at this time.
0 commit comments