Avoid testsuite errors about missing compilers.
PR ld/20436 * testsuite/lib/ld-lib.exp (check_gcc_plugin_enabled): When not testing remotely, check to see if target compiler is installed before trying to run it.
This commit is contained in:
parent
dbd8770c86
commit
7f6bf02d58
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2016-08-11 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR ld/20436
|
||||
* testsuite/lib/ld-lib.exp (check_gcc_plugin_enabled): When not
|
||||
testing remotely, check to see if target compiler is installed
|
||||
before trying to run it.
|
||||
|
||||
2016-08-10 Maciej W. Rozycki <macro@imgtec.com>
|
||||
|
||||
PR ld/15428
|
||||
|
|
|
@ -1815,7 +1815,10 @@ proc check_gcc_plugin_enabled { } {
|
|||
if {![info exists CC]} {
|
||||
set CC [find_gcc]
|
||||
}
|
||||
if { $CC == "" } {
|
||||
if { $CC == ""} {
|
||||
return 0
|
||||
}
|
||||
if { ![is_remote host] && [which $CC] == 0 } then {
|
||||
return 0
|
||||
}
|
||||
set state [remote_exec host $CC -v]
|
||||
|
|
Loading…
Reference in a new issue