]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/base/print.go
internal/buildcfg: move build configuration out of cmd/internal/objabi
[gostls13.git] / src / cmd / compile / internal / base / print.go
index 668c600d31774c34bb016c3e5a8f366cdfd2c6ba..b095fd704daad807b3847bbd2916024356161af2 100644 (file)
@@ -6,12 +6,12 @@ package base
 
 import (
        "fmt"
+       "internal/buildcfg"
        "os"
        "runtime/debug"
        "sort"
        "strings"
 
-       "cmd/internal/objabi"
        "cmd/internal/src"
 )
 
@@ -217,7 +217,7 @@ func FatalfAt(pos src.XPos, format string, args ...interface{}) {
                fmt.Printf("\n")
 
                // If this is a released compiler version, ask for a bug report.
-               if strings.HasPrefix(objabi.Version, "go") {
+               if strings.HasPrefix(buildcfg.Version, "go") {
                        fmt.Printf("\n")
                        fmt.Printf("Please file a bug report including a short program that triggers the error.\n")
                        fmt.Printf("https://golang.org/issue/new\n")