[binutils-gdb] ld: restore CC_FOR_TARGET if bailing out early for LTO tests
Sam James
sjames@sourceware.org
Fri Aug 28 09:27:40 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a376c787f1417abedb3c51516942c0077892313c
commit a376c787f1417abedb3c51516942c0077892313c
Author: Sam James <sam@gentoo.org>
Date: Fri Aug 28 10:25:53 2026 +0100
ld: restore CC_FOR_TARGET if bailing out early for LTO tests
Fixup c562e4ffa94c50ee974200a7457e435cec411a43 as we need to restore
CC_FOR_TARGET which may not be Clang if we return early because of missing
objects.
PR ld/34576
* testsuite/ld-plugin/lto.exp (llvm_lto_tests): Restore
CC_FOR_TARGET on return.
Diff:
---
ld/testsuite/ld-plugin/lto.exp | 1 +
1 file changed, 1 insertion(+)
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index 41593efc253..faa7c68770d 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -1485,6 +1485,7 @@ proc llvm_lto_tests {} {
if {![file exists tmpdir/pr34572a.o]
|| ![file exists tmpdir/pr34572b.o]} {
+ set CC_FOR_TARGET "$CC_FOR_TARGET_saved"
return
}
More information about the Binutils-cvs
mailing list