Commit 35b2bfc8 authored by Russ Cox's avatar Russ Cox

gotest: use $GCFLAGS like make does

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5297044
parent bb8c4ed2
......@@ -153,8 +153,12 @@ func setEnvironment() {
if gc == "" {
gc = O + "g"
}
XGC = []string{gc, "-I", "_test", "-o", "_xtest_." + O}
GC = []string{gc, "-I", "_test", "_testmain.go"}
var gcflags []string
if gf := strings.TrimSpace(os.Getenv("GCFLAGS")); gf != "" {
gcflags = strings.Fields(gf)
}
XGC = append([]string{gc, "-I", "_test", "-o", "_xtest_." + O}, gcflags...)
GC = append(append([]string{gc, "-I", "_test"}, gcflags...), "_testmain.go")
gl := os.Getenv("GL")
if gl == "" {
gl = O + "l"
......
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