[COMMITTED, PATCH] ld: Run clang tests only if supported

H.J. Lu hjl.tools@gmail.com
Fri Aug 28 08:27:23 GMT 2026


On Fri, Aug 28, 2026 at 4:11 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> Since Clang doesn't support all GCC options, PR ld/34570 tests fail to
> compile if GCC specific options are used to build binutils.  Add
> llvm_lto_tests to lto.exp and don't run PR ld/34576 tests if Clang fails
> to compile them.
>
> PR ld/34576
> * testsuite/ld-plugin/lto.exp (llvm_lto_tests): New.
> Use it.
>
> --
> H.J.

This is the patch I am checking in.

-- 
H.J.
---
Since Clang doesn't support all GCC options, PR ld/34570 tests fail to
compile if GCC specific options are used to build binutils.  Add
llvm_lto_tests to lto.exp and don't run PR ld/34570 tests if Clang fails
to compile them.

PR ld/34576
PR ld/34570
* testsuite/ld-plugin/lto.exp (llvm_lto_tests): New.
Use it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ld-Run-clang-tests-only-if-supported.patch
Type: application/x-patch
Size: 2292 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260828/56233a1e/attachment-0001.bin>


More information about the Binutils mailing list