diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 844e0237157..365e516ec8a 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -483,7 +483,8 @@ func cpuinit() { const prefix = "GODEBUGCPU=" var env string - if GOOS == "linux" || GOOS == "darwin" { + switch GOOS { + case "aix", "darwin", "dragonfly", "freebsd", "netbsd", "openbsd", "solaris", "linux": cpu.DebugOptions = true // Similar to goenv_unix but extracts the environment value for