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:
parent
afd2ea2362
commit
344e66534e
@ -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>
|
2020-07-23 Maciej W. Rozycki <macro@wdc.com>
|
||||||
|
|
||||||
PR ld/26288
|
PR ld/26288
|
||||||
|
@ -1594,16 +1594,20 @@ proc check_ctf_available { } {
|
|||||||
global ctf_available_saved
|
global ctf_available_saved
|
||||||
|
|
||||||
if {![info exists ctf_available_saved]} {
|
if {![info exists ctf_available_saved]} {
|
||||||
set basename "tmpdir/ctf_available[pid]"
|
if { ![check_compiler_available] } {
|
||||||
set src ${basename}.c
|
set ctf_available_saved 0
|
||||||
set output ${basename}.o
|
} else {
|
||||||
set f [open $src "w"]
|
set basename "tmpdir/ctf_available[pid]"
|
||||||
puts $f "int main() { return 0; }"
|
set src ${basename}.c
|
||||||
close $f
|
set output ${basename}.o
|
||||||
set ctf_available_saved [compile_one_cc $src $output "-gt -c"]
|
set f [open $src "w"]
|
||||||
remote_file host delete $src
|
puts $f "int main() { return 0; }"
|
||||||
remote_file host delete $output
|
close $f
|
||||||
file delete $src
|
set ctf_available_saved [compile_one_cc $src $output "-gt -c"]
|
||||||
|
remote_file host delete $src
|
||||||
|
remote_file host delete $output
|
||||||
|
file delete $src
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return $ctf_available_saved
|
return $ctf_available_saved
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user