mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Minor grammar fixes
parent
95c43184d4
commit
da56919c0c
@ -1,4 +1,4 @@
|
|||||||
# Building windows go programs on linux
|
# Building Windows Go programs on Linux
|
||||||
|
|
||||||
See [here](https://golang.org/doc/install/source#environment) for available `GOOS` and `GOARCH` values.
|
See [here](https://golang.org/doc/install/source#environment) for available `GOOS` and `GOARCH` values.
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ done
|
|||||||
exit 0
|
exit 0
|
||||||
```
|
```
|
||||||
|
|
||||||
Last step is to build windows versions of standard commands and libraries. I have small script for that too:
|
Last step is to build Windows versions of standard commands and libraries. I have a small script for that too:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ cat ~/bin/buildpkg
|
$ cat ~/bin/buildpkg
|
||||||
@ -99,9 +99,9 @@ I run it like that:
|
|||||||
$ ~/bin/buildpkg windows 386
|
$ ~/bin/buildpkg windows 386
|
||||||
```
|
```
|
||||||
|
|
||||||
to build windows/386 version of Go commands and packages. You can, probably, see it from my script, I exclude building of any cgo related parts - these will not work for me, since I do not have correspondent gcc cross-compiling tools installed. So I just skip those.
|
to build Windows/386 version of Go commands and packages. You can probably see from my script that I exclude building of any cgo related parts — these will not work for me, since I do not have correspondent gcc cross-compiling tools installed. So I just skip those.
|
||||||
|
|
||||||
Now we're ready to build our windows executable:
|
Now we're ready to build our Windows executable:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
$ cat hello.go
|
$ cat hello.go
|
||||||
|
Loading…
x
Reference in New Issue
Block a user