build: Refactor build flags
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:
finga 2023-06-07 20:53:33 +02:00
parent 164c9f0087
commit ec45734f6b

View file

@ -19,7 +19,9 @@
"pre-link-args": {
"gcc": [
"-mmcu=atmega328p",
"-Wl,--as-needed"
"-Os",
"-mrelax",
"-flto"
]
},
"target-c-int-width": "16",