mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
add warning about slow builds
parent
0d687276e0
commit
bc7e7aac62
@ -20,8 +20,13 @@ func main() {
|
|||||||
$ GOOS=windows GOARCH=386 go build -o hello.exe hello.go
|
$ GOOS=windows GOARCH=386 go build -o hello.exe hello.go
|
||||||
```
|
```
|
||||||
|
|
||||||
You can now run `hello.exe` on a Windows machine near you.
|
You can now run `hello.exe` on a Windows machine near you.
|
||||||
|
|
||||||
|
Note that the command above will silently rebuild most of standard library, and for this reason will be quite slow. To speed-up the process, you can install all the windows-amd64 standard packages on your system with
|
||||||
|
|
||||||
|
```
|
||||||
|
GOOS=windows GOARCH=amd64 go install
|
||||||
|
```
|
||||||
|
|
||||||
## Older Go version (<1.5)
|
## Older Go version (<1.5)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user