mirror of
https://github.com/golang/go
synced 2024-11-25 10:17:57 -07:00
cmd/go: fix windows build
R=golang-dev, alex.brainman, rsc CC=golang-dev https://golang.org/cl/5502066
This commit is contained in:
parent
e636f6f51c
commit
98fe44bdfc
@ -917,7 +917,7 @@ func (b *builder) gccCmd(objdir string, flags []string, args ...string) []string
|
|||||||
if build.DefaultContext.CgoEnabled {
|
if build.DefaultContext.CgoEnabled {
|
||||||
switch b.goos {
|
switch b.goos {
|
||||||
case "windows":
|
case "windows":
|
||||||
a = append(a, "-mthread")
|
a = append(a, "-mthreads")
|
||||||
default:
|
default:
|
||||||
a = append(a, "-pthread")
|
a = append(a, "-pthread")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user