ctf test ERROR: $target-cc does not exist

* testsuite/lib/ld-lib.exp (check_ctf_available): Check first that
	target compiler is available.
This commit is contained in:
Alan Modra 2020-07-27 13:20:10 +09:30
parent afd2ea2362
commit 344e66534e
2 changed files with 19 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2020-07-27 Alan Modra <amodra@gmail.com>
* testsuite/lib/ld-lib.exp (check_ctf_available): Check first that
target compiler is available.
2020-07-23 Maciej W. Rozycki <macro@wdc.com>
PR ld/26288

View File

@ -1594,6 +1594,9 @@ proc check_ctf_available { } {
global ctf_available_saved
if {![info exists ctf_available_saved]} {
if { ![check_compiler_available] } {
set ctf_available_saved 0
} else {
set basename "tmpdir/ctf_available[pid]"
set src ${basename}.c
set output ${basename}.o
@ -1605,6 +1608,7 @@ proc check_ctf_available { } {
remote_file host delete $output
file delete $src
}
}
return $ctf_available_saved
}