mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Specify code languages for syntax highlighting
parent
e1ee8b3f8c
commit
bde6ed5a12
@ -4,14 +4,14 @@ I use linux/386, but, I suspect, this procedure will apply to other host platfor
|
|||||||
|
|
||||||
First step is to build host version of go:
|
First step is to build host version of go:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
$ cd $GOROOT/src
|
$ cd $GOROOT/src
|
||||||
$ ./make.bash
|
$ ./make.bash
|
||||||
```
|
```
|
||||||
|
|
||||||
Next you need to build the rest of go compilers and linkers. I have small program to do that:
|
Next you need to build the rest of go compilers and linkers. I have small program to do that:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
$ cat ~/bin/buildcmd
|
$ cat ~/bin/buildcmd
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
@ -25,7 +25,7 @@ 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 small script for that too:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
$ cat ~/bin/buildpkg
|
$ cat ~/bin/buildpkg
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
@ -48,7 +48,7 @@ go install -v -a std
|
|||||||
|
|
||||||
I run it like that:
|
I run it like that:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
$ ~/bin/buildpkg windows 386
|
$ ~/bin/buildpkg windows 386
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ to build windows/386 version of Go commands and packages. You can, probably, see
|
|||||||
|
|
||||||
Now we're ready to build our windows executable:
|
Now we're ready to build our windows executable:
|
||||||
|
|
||||||
```
|
```go
|
||||||
$ cat hello.go
|
$ cat hello.go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user