}
if !t.listMode {
- if os.Getenv("GO_BUILDER_NAME") == "" {
+ if builder := os.Getenv("GO_BUILDER_NAME"); builder == "" {
// Complete rebuild bootstrap, even with -no-rebuild.
// If everything is up-to-date, this is a no-op.
// If everything is not up-to-date, the first checkNotStale
// running dist test, so rebuild (but don't install) std and cmd to make
// sure packages without install targets are cached so they are not stale.
goCmd("go", "build", "std", "cmd") // make sure dependencies of targets are cached
- checkNotStale("go", "std", "cmd")
+ if builder == "aix-ppc64" {
+ // The aix-ppc64 builder for some reason does not have deterministic cgo
+ // builds, so "cmd" is stale. Fortunately, most of the tests don't care.
+ // TODO(#56896): remove this special case once the builder supports
+ // determistic cgo builds.
+ checkNotStale("go", "std")
+ } else {
+ checkNotStale("go", "std", "cmd")
+ }
}
}