mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 15:11:08 +08:00
go-test.exp: add -I. when compiling in directory
* go.test/go-test.exp (go-gc-tests): Add -I. when building all sources in a directory (errorcheckdir, compiledir, rundir, rundircmpout).
This commit is contained in:
parent
5ea36d20c3
commit
2a099fd223
@ -648,7 +648,7 @@ proc go-gc-tests { } {
|
||||
set last [lindex $packages end]
|
||||
set packages [lreplace $packages end end]
|
||||
foreach p $packages {
|
||||
dg-test -keep-output [lrange $p 1 end] "-O" "-w $DEFAULT_GOCFLAGS"
|
||||
dg-test -keep-output [lrange $p 1 end] "-O -I." "-w $DEFAULT_GOCFLAGS"
|
||||
lappend del "[file rootname [file tail [lindex $p 1]]].o"
|
||||
}
|
||||
errchk [lindex $last 1] "[lrange $last 2 end]"
|
||||
@ -692,7 +692,7 @@ proc go-gc-tests { } {
|
||||
if { [llength $packages] > 0 } {
|
||||
set del [list]
|
||||
foreach p $packages {
|
||||
dg-test -keep-output [lindex $p 1] "[lrange $p 2 end] -O" "-w $DEFAULT_GOCFLAGS"
|
||||
dg-test -keep-output [lindex $p 1] "[lrange $p 2 end] -O -I." "-w $DEFAULT_GOCFLAGS"
|
||||
lappend del "[file rootname [file tail [lindex $p 1]]].o"
|
||||
}
|
||||
foreach f $del {
|
||||
@ -712,7 +712,7 @@ proc go-gc-tests { } {
|
||||
set last [lindex $packages end]
|
||||
set packages [lreplace $packages end end]
|
||||
foreach p $packages {
|
||||
dg-test -keep-output [lrange $p 1 end] "-O" "-w $DEFAULT_GOCFLAGS"
|
||||
dg-test -keep-output [lrange $p 1 end] "-O -I." "-w $DEFAULT_GOCFLAGS"
|
||||
lappend del "[file rootname [file tail [lindex $p 1]]].o"
|
||||
}
|
||||
set dg-do-what-default "link"
|
||||
@ -737,11 +737,11 @@ proc go-gc-tests { } {
|
||||
set last [lindex $packages end]
|
||||
set packages [lreplace $packages end end]
|
||||
foreach p $packages {
|
||||
dg-test -keep-output [lrange $p 1 end] "-O" "-w $DEFAULT_GOCFLAGS"
|
||||
dg-test -keep-output [lrange $p 1 end] "-O -I." "-w $DEFAULT_GOCFLAGS"
|
||||
lappend del "[file rootname [file tail [lindex $p 1]]].o"
|
||||
}
|
||||
set dg-do-what-default "link"
|
||||
dg-test -keep-output [lrange $last 1 end] "$del -O" "-w $DEFAULT_GOCFLAGS"
|
||||
dg-test -keep-output [lrange $last 1 end] "$del -O -I." "-w $DEFAULT_GOCFLAGS"
|
||||
set base "[file rootname [file tail [lindex $last 1]]]"
|
||||
set output_file "./$base.exe"
|
||||
lappend del $output_file
|
||||
|
Loading…
x
Reference in New Issue
Block a user