build: Refactor build flags
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Remove `-as-needed` linker flag. Fix formatting and add `-Os`, `-mrelax` and `flto`.
This commit is contained in:
parent
164c9f0087
commit
ec45734f6b
1 changed files with 5 additions and 3 deletions
|
@ -19,7 +19,9 @@
|
||||||
"pre-link-args": {
|
"pre-link-args": {
|
||||||
"gcc": [
|
"gcc": [
|
||||||
"-mmcu=atmega328p",
|
"-mmcu=atmega328p",
|
||||||
"-Wl,--as-needed"
|
"-Os",
|
||||||
|
"-mrelax",
|
||||||
|
"-flto"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"target-c-int-width": "16",
|
"target-c-int-width": "16",
|
||||||
|
|
Loading…
Reference in a new issue