Commit 7504beb4 by Mark Mitchell Committed by Mark Mitchell

libstdc++.exp (v3_target_compile_as_c): In installed-tree testing, use…

libstdc++.exp (v3_target_compile_as_c): In installed-tree testing, use "remote_exec host", not "remote_exec exec".

	* testsuite/lib/libstdc++.exp (v3_target_compile_as_c): In
	installed-tree testing, use "remote_exec host", not "remote_exec
	exec".  Trip trailing newlines from output of -dumpversion and
	-dumpmachine.

From-SVN: r124505
parent b187f5cd
2007-05-07 Mark Mitchell <mark@codesourcery.com>
* testsuite/lib/libstdc++.exp (v3_target_compile_as_c): In
installed-tree testing, use "remote_exec host", not "remote_exec
exec". Trip trailing newlines from output of -dumpversion and
-dumpmachine.
2007-05-07 Benjamin Kosnik <bkoz@redhat.com> 2007-05-07 Benjamin Kosnik <bkoz@redhat.com>
Howard Hinnant <hhinnant@apple.com> Howard Hinnant <hhinnant@apple.com>
......
...@@ -399,9 +399,10 @@ proc v3_target_compile_as_c { source dest type options } { ...@@ -399,9 +399,10 @@ proc v3_target_compile_as_c { source dest type options } {
# info. # info.
if { ![file exists $flags_file] } { if { ![file exists $flags_file] } {
set version [remote_exec host ${cc} -dumpversion] set version [remote_exec host ${cc} -dumpversion]
set version [lindex $version 1] # Remove the trailing newline from the output.
set machine [remote_exec exec ${cc} -dumpmachine] set version [string trimright [lindex $version 1]]
set machine [lindex $machine 1] set machine [remote_exec host ${cc} -dumpmachine]
set machine [string trimright [lindex $machine 1]]
set comp_base_dir [remote_exec host ${cc} --print-prog-name=cc1] set comp_base_dir [remote_exec host ${cc} --print-prog-name=cc1]
set comp_base_dir [lindex $comp_base_dir 1] set comp_base_dir [lindex $comp_base_dir 1]
set comp_base_dir [file dirname [file dirname [file dirname [file dirname [file dirname $comp_base_dir]]]]] set comp_base_dir [file dirname [file dirname [file dirname [file dirname [file dirname $comp_base_dir]]]]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment