Commit edcc8f9e authored by Ian Lance Taylor's avatar Ian Lance Taylor

cmd/dist: rename buildmode method to supportedBuildmode

Change-Id: Ie36fd46ad3c0799200fdf4240483a207335570d8
Reviewed-on: https://go-review.googlesource.com/9531Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 433af05a
......@@ -275,13 +275,13 @@ func (t *tester) registerTests() {
} else if t.hasBash() && t.goos != "android" && !iOS {
t.registerTest("testso", "../misc/cgo/testso", "./test.bash")
}
if t.buildmode("c-archive") {
if t.supportedBuildmode("c-archive") {
t.registerTest("testcarchive", "../misc/cgo/testcarchive", "./test.bash")
}
if t.buildmode("c-shared") {
if t.supportedBuildmode("c-shared") {
t.registerTest("testcshared", "../misc/cgo/testcshared", "./test.bash")
}
if t.buildmode("shared") {
if t.supportedBuildmode("shared") {
t.registerTest("testshared", "../misc/cgo/testshared", "./test.bash")
}
if t.gohostos == "linux" && t.goarch == "amd64" {
......@@ -382,7 +382,7 @@ func (t *tester) extLink() bool {
return false
}
func (t *tester) buildmode(mode string) bool {
func (t *tester) supportedBuildmode(mode string) bool {
pair := t.goos + "-" + t.goarch
switch mode {
case "c-archive":
......
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