社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
$ cd /c/go/src
$ ./make.bat
Building Go cmd/dist using C:Go
go tool: no such tool "compile"
go tool: no such tool "compile"
go tool: no such tool "compile"
go tool: no such tool "compile"
go tool: no such tool "compile"
go tool: no such tool "compile"
go tool: no such tool "compile"
go tool: no such tool "compile"
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:UsersMikeAppDataLocalgo-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=E:devgolang
set GORACE=
set GOROOT=c:go
set GOTMPDIR=
set GOTOOLDIR=c:gopkgtoolwindows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:UsersMikeAppDataLocalTempgo-build976029818=/tmp/go-build -gno-record-gcc-switches
$ GOOS=windows GOARCH=amd64 ./make.bat
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool.
E:gosrclib9fmtfltfmt.c: In function '__efgfmt':
E:gosrclib9fmtfltfmt.c:437:5: warning: this statement may fall through [-Wi mplicit-fallthrough=]
if(ndigits > prec) {
^
E:gosrclib9fmtfltfmt.c:451:2: note: here
省略大部分日志
---
Installed Go for windows/amd64 in E:go
Installed commands in E:gobin
可以看到,编译时间已经更新:
123
修改GOROOT_BOOTSTRAP,设置为E:go,重新编译
$ GOOS=windows GOARCH=amd64 ./make.bat
# Building C bootstrap tool.
可以看到,编译时间已经更新:
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!