mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 04:50:24 +08:00
gcov: Respect triplet when looking for gcov
When testing a cross toolchain outside the build tree, the binary name for gcov is prefixed with the triplet. gcc/testsuite/ChangeLog: * g++.dg/gcov/gcov.exp: Respect triplet when looking for gcov. * gcc.misc-tests/gcov.exp: Likewise. Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
This commit is contained in:
parent
723ef5a937
commit
34b9a03353
@ -24,9 +24,9 @@ global GXX_UNDER_TEST
|
||||
|
||||
# Find gcov in the same directory as $GXX_UNDER_TEST.
|
||||
if { ![is_remote host] && [string match "*/*" [lindex $GXX_UNDER_TEST 0]] } {
|
||||
set GCOV [file dirname [lindex $GXX_UNDER_TEST 0]]/gcov
|
||||
set GCOV [file dirname [lindex $GXX_UNDER_TEST 0]]/[transform gcov]
|
||||
} else {
|
||||
set GCOV gcov
|
||||
set GCOV [transform gcov]
|
||||
}
|
||||
|
||||
# Initialize harness.
|
||||
|
@ -24,9 +24,9 @@ global GCC_UNDER_TEST
|
||||
|
||||
# For now find gcov in the same directory as $GCC_UNDER_TEST.
|
||||
if { ![is_remote host] && [string match "*/*" [lindex $GCC_UNDER_TEST 0]] } {
|
||||
set GCOV [file dirname [lindex $GCC_UNDER_TEST 0]]/gcov
|
||||
set GCOV [file dirname [lindex $GCC_UNDER_TEST 0]]/[transform gcov]
|
||||
} else {
|
||||
set GCOV gcov
|
||||
set GCOV [transform gcov]
|
||||
}
|
||||
|
||||
# Initialize harness.
|
||||
|
Loading…
x
Reference in New Issue
Block a user