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
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue