[PATCH] binutils: Use AC_TRY_COMPILE to check target clang/gcc

Nelson Chu nelson@rivosinc.com
Thu Oct 2 02:06:51 GMT 2025


Thanks, I got my toolchains built after pulling this patch, they failed a
week ago.

Nelson

On Wed, Oct 1, 2025 at 6:14 AM Alan Modra <amodra@gmail.com> wrote:

> On Tue, Sep 30, 2025 at 03:43:02PM +0800, H.J. Lu wrote:
> > Use AC_TRY_COMPILE to check for the working target clang and gcc when
> > configuring for cross tools.
> >
> > PR binutils/33503
> > * configure: Regenerated.
> >
> > config/
> >
> > PR binutils/33503
> > * clang-plugin.m4 (CLANG_PLUGIN_FILE_FOR_TARGET): Use
> > AC_TRY_COMPILE to check the target clang and replace
> > clang_cv_is_clang with clang_target_cv_working.
> > * gcc-plugin.m4 (GCC_PLUGIN_OPTION_FOR_TARGET): Use
> > AC_TRY_COMPILE to check the target gcc.
>
> OK.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20251002/d7054b27/attachment.htm>


More information about the Binutils mailing list