[COMMITTED] ld: restore CC_FOR_TARGET if bailing out early for LTO tests
Checks
Commit Message
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.
---
Committed.
ld/testsuite/ld-plugin/lto.exp | 1 +
1 file changed, 1 insertion(+)
base-commit: 1469a04f30917ef6a2bf4afc73e442b836574563
@@ -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
}