-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig
49 lines (41 loc) · 1.38 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Teensy 3.0, 3.1, 3.2
[target.thumbv7em-none-eabi]
rustflags = [
# Use the linker script automatically provided by
# teensy3-sys
"-C", "link-arg=-Tteensy3-sys.ld",
"-C", "link-arg=-Wl,--gc-sections,--defsym=__rtc_localtime=0",
"-C", "link-arg=-Wl,--start-group",
"-C", "link-arg=-Wl,--end-group",
"-C", "link-arg=-lm",
"-C", "link-arg=-lnosys",
"-C", "link-arg=-lc",
"-C", "link-arg=-lgcc",
"-C", "link-arg=-mcpu=cortex-m4",
"-C", "link-arg=-mthumb",
"-C", "link-arg=-Os",
"-C", "link-arg=--specs=nano.specs",
]
# Teensy 3.5, 3.6
[target.thumbv7em-none-eabihf]
rustflags = [
# Use the linker script automatically provided by
# teensy3-sys
"-C", "link-arg=-Tteensy3-sys.ld",
"-C", "link-arg=-Wl,--gc-sections,--defsym=__rtc_localtime=0",
"-C", "link-arg=-Wl,--start-group",
"-C", "link-arg=-Wl,--end-group",
"-C", "link-arg=-lm",
"-C", "link-arg=-lnosys",
"-C", "link-arg=-lc",
"-C", "link-arg=-lgcc",
"-C", "link-arg=-mcpu=cortex-m4",
"-C", "link-arg=-mthumb",
"-C", "link-arg=-Os",
"-C", "link-arg=--specs=nano.specs",
"-C", "link-arg=-mfloat-abi=hard",
"-C", "link-arg=-mfpu=fpv4-sp-d16",
]
# Can this be handled when generating the static library instead?
# as long as the rust crate doesn't link directly against intrinsics?
## "-C", "link-arg=-larm_cortexM4lf_math",