]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgo.exp: Set tmpdir.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 2 Feb 2011 15:50:16 +0000 (15:50 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 2 Feb 2011 15:50:16 +0000 (15:50 +0000)
From-SVN: r169529

libgo/testsuite/lib/libgo.exp

index 29764d9244686cf823bda33def0adfb833f3053e..a6d44323d3e67b4273905f82d05d58fc3f812da9 100644 (file)
@@ -21,6 +21,10 @@ if {$gccdir != ""} {
 set GOC_UNDER_TEST "$gccdir/gccgo -B$gccdir/"
 set TESTING_IN_BUILD_TREE 1
 
+if [info exists GOTEST_TMPDIR] {
+    set tmpdir $GOTEST_TMPDIR
+}
+
 proc go_maybe_build_wrapper { args } {
     libgo_maybe_build_wrapper $args
 }