diff options
Diffstat (limited to 'gcc-4.9/libgomp/testsuite/lib/libgomp.exp')
-rw-r--r-- | gcc-4.9/libgomp/testsuite/lib/libgomp.exp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc-4.9/libgomp/testsuite/lib/libgomp.exp b/gcc-4.9/libgomp/testsuite/lib/libgomp.exp index c965147e4..71775d342 100644 --- a/gcc-4.9/libgomp/testsuite/lib/libgomp.exp +++ b/gcc-4.9/libgomp/testsuite/lib/libgomp.exp @@ -114,10 +114,9 @@ proc libgomp_init { args } { append always_ld_library_path ":${gccdir}/pthread" } append always_ld_library_path ":${gccdir}" - set compiler [lindex $GCC_UNDER_TEST 0] - if { [is_remote host] == 0 && [which $compiler] != 0 } { - foreach i "[exec $compiler --print-multi-lib]" { + if { [is_remote host] == 0 } { + foreach i "[eval "exec $GCC_UNDER_TEST --print-multi-lib"]" { set mldir "" regexp -- "\[a-z0-9=_/\.-\]*;" $i mldir set mldir [string trimright $mldir "\;@"] |