Commit d6dbbf9
kbuild: Fix Propeller build option
The '-fbasic-block-sections=labels' option has been deprecated with
the following llvm patch:
llvm/llvm-project#110039
The old option still works, but with a warning like
clang: warning: argument '-fbasic-block-sections=labels' \
is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
Currently, the option change is only in the ToT clang (v20) and not yet
released in v19.
This patch adds a check to the Makefile to set the proper option.
If the option change is later integrated in v19.x, we need to update the
check accordingly.
Signed-off-by: Rong Xu <[email protected]>
Reported-by: Nathan Chancellor <[email protected]>1 parent 0dcc2d1 commit d6dbbf9
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
24 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
25 | 35 | | |
26 | 36 | | |
27 | 37 | | |
| |||
0 commit comments