File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 34
34
"-ffunction-sections" , # place each function in its own section
35
35
"-fdata-sections" ,
36
36
"-mthumb" ,
37
- "-nostdlib" ,
38
- "-fsingle-precision-constant"
37
+ "-nostdlib"
39
38
],
40
39
41
40
CXXFLAGS = [
56
55
"-Os" ,
57
56
"-Wl,--gc-sections,--relax" ,
58
57
"-mthumb" ,
59
- "-Wl,--defsym=__rtc_localtime=$UNIX_TIME" ,
60
- "-fsingle-precision-constant"
58
+ "-Wl,--defsym=__rtc_localtime=$UNIX_TIME"
61
59
],
62
60
63
61
LIBS = ["m" , "stdc++" ]
91
89
"-mcpu=%s" % env .BoardConfig ().get ("build.cpu" )
92
90
]
93
91
)
92
+
93
+ if env .BoardConfig ().get ("build.core" , "" ) != "teensy4" :
94
+ env .Append (
95
+ ASFLAGS = [
96
+ "-mno-unaligned-access" ,
97
+ ],
98
+ CCFLAGS = [
99
+ "-mno-unaligned-access" ,
100
+ "-fsingle-precision-constant"
101
+ ],
102
+ LINKFLAGS = [
103
+ "-fsingle-precision-constant"
104
+ ]
105
+ )
Original file line number Diff line number Diff line change 145
145
"-fdata-sections" ,
146
146
"-mthumb" ,
147
147
"-mcpu=%s" % env .BoardConfig ().get ("build.cpu" ),
148
- "-nostdlib" ,
149
- "-fsingle-precision-constant"
148
+ "-nostdlib"
150
149
],
151
150
152
151
CXXFLAGS = [
You can’t perform that action at this time.
0 commit comments