diff --git a/src/cmd/go/build.go b/src/cmd/go/build.go index 62c8d90d30..7e87956e7d 100644 --- a/src/cmd/go/build.go +++ b/src/cmd/go/build.go @@ -917,7 +917,7 @@ func (b *builder) gccCmd(objdir string, flags []string, args ...string) []string if build.DefaultContext.CgoEnabled { switch b.goos { case "windows": - a = append(a, "-mthread") + a = append(a, "-mthreads") default: a = append(a, "-pthread") }