diff options
Diffstat (limited to 'libgo/go/go/build/build.go')
-rw-r--r-- | libgo/go/go/build/build.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/go/build/build.go b/libgo/go/go/build/build.go index cb053ebbed27..4e1b29fecd99 100644 --- a/libgo/go/go/build/build.go +++ b/libgo/go/go/build/build.go @@ -266,7 +266,7 @@ func defaultGOPATH() string { } if home := os.Getenv(env); home != "" { def := filepath.Join(home, "go") - if def == runtime.GOROOT() { + if filepath.Clean(def) == filepath.Clean(runtime.GOROOT()) { // Don't set the default GOPATH to GOROOT, // as that will trigger warnings from the go tool. return "" |