Re: [PATCH v2] kbuild: Fix Propeller build option

From: Masahiro Yamada
Date: Sat Nov 16 2024 - 23:53:33 EST


On Sat, Nov 9, 2024 at 6:50 AM Rong Xu <xur@xxxxxxxxxx> wrote:
>
> The '-fbasic-block-sections=labels' option has been deprecated in tip
> of tree clang (20.0.0) [1]. While the option still works, a warning is
> emitted:
>
> clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
>
> Add a version check to set the proper option.
>
> Link: https://github.com/llvm/llvm-project/pull/110039 [1]
>
> Signed-off-by: Rong Xu <xur@xxxxxxxxxx>
> Reported-by: Nathan Chancellor <nathan@xxxxxxxxxx>
> Suggested-by: Nathan Chancellor <nathan@xxxxxxxxxx>
>
> ---
> ChangeLog in V2
> Integrated suggestions from Nathan Chancellor.
> (1) improved commit message
> (2) added links to the comments
> (3) used ld.lld version in the version check for lld
> ---

Applied to linux-kbuild.
Thanks!



--
Best Regards
Masahiro Yamada