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

@ -8,7 +8,7 @@
"executables": true,
"late-link-args": {
"gcc": [
"-lgcc"
"-lgcc"
]
},
"linker": "avr-gcc",
@ -18,8 +18,10 @@
"no-default-libraries": false,
"pre-link-args": {
"gcc": [
"-mmcu=atmega328p",
"-Wl,--as-needed"
"-mmcu=atmega328p",
"-Os",
"-mrelax",
"-flto"
]
},
"target-c-int-width": "16",