Re: [PATCH 0/2] Fix cross-compilation issues with Clang

From: Nathan Chancellor
Date: Tue Jun 27 2023 - 12:32:59 EST


On Tue, Jun 27, 2023 at 09:01:20PM +0800, WANG Xuerui wrote:
> From: WANG Xuerui <git@xxxxxxxxxx>
>
> Hi,
>
> Just some quick fixes to the recently accepted Clang patches, thanks to
> Nathan's followup testing. (I test-compiled natively so didn't notice

It is good to hear that everything works natively as well :)

> that cross-compilation was broken, and by chance the LLVM snapshot I
> used didn't contain the breaking commit either.)

And we can already see this effort making the compiler better! The
problematic LLVM patch is only a week old so we were able to catch it
before it made it into a released version. Thanks again for the work you
have done getting this working so far.

Cheers,
Nathan

>
> With an additional LLVM patch https://reviews.llvm.org/D153865 the Clang
> builds should now get fixed.
>
> WANG Xuerui (2):
> LoongArch: vDSO: Use CLANG_FLAGS instead of filtering out '--target='
> LoongArch: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation
>
> arch/loongarch/Makefile | 2 +-
> arch/loongarch/vdso/Makefile | 5 +----
> 2 files changed, 2 insertions(+), 5 deletions(-)
>
> --
> 2.40.0
>