1
0
mirror of https://github.com/golang/go synced 2024-11-23 18:40:03 -07:00

cmd/go: disable concurrent compilation under GOEXPERIMENTs

Duplicate cmd/compile check into cmd/go. Manually tested that
"GOEXPERIMENT=fieldtrack make.bash" passes now.

Updates #22223.

Change-Id: I441970a8a5ad4aadf5bd4fbd4d6cc71847b43308
Reviewed-on: https://go-review.googlesource.com/81776
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Matthew Dempsky 2017-12-04 11:09:45 -08:00
parent 2b9e7c1864
commit 509ffb94ca

View File

@ -20,6 +20,7 @@ import (
"cmd/go/internal/cfg"
"cmd/go/internal/load"
"cmd/go/internal/str"
"cmd/internal/objabi"
"crypto/sha1"
)
@ -161,6 +162,11 @@ CheckFlags:
}
}
// TODO: Test and delete these conditions.
if objabi.Fieldtrack_enabled != 0 || objabi.Preemptibleloops_enabled != 0 || objabi.Clobberdead_enabled != 0 {
canDashC = false
}
if !canDashC {
return 1
}