Commit e828d3f3 by Joseph Myers Committed by Joseph Myers

struct-layout-1.exp: Compile generator on build system.

	* g++.dg/compat/struct-layout-1.exp: Compile generator on build
	system.
	* gcc.dg/compat/struct-layout-1.exp: Likewise.
	* objc.dg/gnu-encoding/gnu-encoding.exp: Likewise.

From-SVN: r137397
parent 5feeae18
2008-07-02 Joseph Myers <joseph@codesourcery.com>
* g++.dg/compat/struct-layout-1.exp: Compile generator on build
system.
* gcc.dg/compat/struct-layout-1.exp: Likewise.
* objc.dg/gnu-encoding/gnu-encoding.exp: Likewise.
2008-07-02 Andy Hutchinson <hutchinsonandy@aim.com>
PR testsuite/36285
......
......@@ -136,7 +136,7 @@ if [info exists env(GCC_EXEC_PREFIX)] {
set orig_gcc_exec_prefix_saved 1
unsetenv GCC_EXEC_PREFIX
}
set status [remote_exec host "$HOSTCC $HOSTCFLAGS $generator_cmd"]
set status [remote_exec build "$HOSTCC $HOSTCFLAGS $generator_cmd"]
set status [lindex $status 0]
if { $orig_gcc_exec_prefix_saved } {
set orig_gcc_exec_prefix_saved 0
......
......@@ -98,7 +98,7 @@ if [info exists env(GCC_EXEC_PREFIX)] {
set orig_gcc_exec_prefix_saved 1
unsetenv GCC_EXEC_PREFIX
}
set status [remote_exec host "$HOSTCC $HOSTCFLAGS $generator_cmd"]
set status [remote_exec build "$HOSTCC $HOSTCFLAGS $generator_cmd"]
set status [lindex $status 0]
if { $orig_gcc_exec_prefix_saved } {
set orig_gcc_exec_prefix_saved 0
......
......@@ -37,7 +37,7 @@ set generator_src "$srcdir/$subdir/struct-layout-encoding-1_generate.c"
set generator_src "$generator_src $srcdir/$subdir/generate-random.c"
set generator_src "$generator_src $srcdir/$subdir/generate-random_r.c"
set generator_cmd "-o $generator $generator_src"
set status [remote_exec host "$HOSTCC $HOSTCFLAGS $generator_cmd"]
set status [remote_exec build "$HOSTCC $HOSTCFLAGS $generator_cmd"]
set status [lindex $status 0]
if { $status == 0 } then {
file delete -force $tstobjdir
......
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