Commit 18f48e3
committed
rust: Replace -fmin-function-alignment with -falign-functions for bindgen
Commit 5270316 ("kbuild: Use -fmin-function-alignment when
available") introduces `-fmin-function-alignment` if supported to remove
a workaround for gcc not respecting `-falign-functions` for cold
functions. bindgen does not recognize `-fmin-function-alignment` but
`-falign-functions` is sufficient as long as bindgen is LLVM backed. See
c27cd08 ("Compiler attributes: GCC cold function alignment
workarounds").
So replace `-fmin-function-alignment` with `-falign-functions` for
bindgen's C flags.
Fixes: 5270316 ("kbuild: Use -fmin-function-alignment when available")
Signed-off-by: Janne Grunau <j@jannau.net>1 parent 690c9b4 commit 18f48e3
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
268 | 274 | | |
269 | 275 | | |
270 | 276 | | |
| |||
0 commit comments