]> Cypherpunks repositories - gostls13.git/commitdiff
quietgcc: fix typo, respect $TMPDIR
authorRuss Cox <rsc@golang.org>
Wed, 25 May 2011 17:20:50 +0000 (13:20 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 25 May 2011 17:20:50 +0000 (13:20 -0400)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4529087

src/quietgcc.bash

index e29ee4f6428770e8dfdcbb19a6e358117ab1b5d9..c99305edad93ab71a7ef3e0a098bf22b7a84b3c3 100755 (executable)
@@ -4,7 +4,7 @@
 # license that can be found in the LICENSE file.
 
 # The master for this file is $GOROOT/src/quietgcc.bash
-# Changes made to $GOBIN/quietgcc will be overridden.
+# Changes made to $GOBIN/quietgcc will be overwritten.
 
 # Gcc output that we don't care to see.
 ignore=': error: .Each undeclared identifier'
@@ -32,7 +32,7 @@ case "$(uname -m -p)-$GOHOSTARCH" in
 esac
 
 # Run gcc, save error status, redisplay output without noise, exit with gcc status.
-tmp=/tmp/qcc.$$.$USER.out
+tmp=${TMPDIR:-/tmp}/quietgcc.$$.$USER.out
 $gcc -Wall -Wno-sign-compare -Wno-missing-braces \
        -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment \
        -Werror \