Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harvey port of golang #2

Open
wants to merge 7 commits into
base: harveyport
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: go

go:
- 1.8

env:
global:
- GOROOT_BOOTSTRAP="/home/travis/.gimme/versions/go1.8.linux.amd64"

before_install:
- echo "no"
install:
- echo "no"

before_script:
- cd $TRAVIS_BUILD_DIR/src

script:
- GOOS=harvey GOARCH=amd64 ./make.bash
2 changes: 2 additions & 0 deletions src/cmd/dist/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ var okgoos = []string{
"netbsd",
"openbsd",
"plan9",
"harvey",
"windows",
}

Expand Down Expand Up @@ -1127,6 +1128,7 @@ var cgoEnabled = map[string]bool{
"plan9/386": false,
"plan9/amd64": false,
"plan9/arm": false,
"harvey/amd64": false,
"solaris/amd64": true,
"windows/386": true,
"windows/amd64": true,
Expand Down
2 changes: 1 addition & 1 deletion src/go/build/syslist.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

package build

const goosList = "android darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows zos "
const goosList = "android darwin dragonfly freebsd harvey linux nacl netbsd openbsd plan9 solaris windows zos "
const goarchList = "386 amd64 amd64p32 arm armbe arm64 arm64be ppc64 ppc64le mips mipsle mips64 mips64le mips64p32 mips64p32le ppc s390 s390x sparc sparc64 "
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const GoosAndroid = 1
const GoosDarwin = 0
const GoosDragonfly = 0
const GoosFreebsd = 0
const GoosHarvey = 0
const GoosLinux = 0
const GoosNacl = 0
const GoosNetbsd = 0
const GoosOpenbsd = 0
const GoosPlan9 = 0
const GoosSolaris = 0
const GoosWindows = 0
const GoosZos = 0
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const GoosAndroid = 0
const GoosDarwin = 1
const GoosDragonfly = 0
const GoosFreebsd = 0
const GoosHarvey = 0
const GoosLinux = 0
const GoosNacl = 0
const GoosNetbsd = 0
const GoosOpenbsd = 0
const GoosPlan9 = 0
const GoosSolaris = 0
const GoosWindows = 0
const GoosZos = 0
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_dragonfly.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const GoosAndroid = 0
const GoosDarwin = 0
const GoosDragonfly = 1
const GoosFreebsd = 0
const GoosHarvey = 0
const GoosLinux = 0
const GoosNacl = 0
const GoosNetbsd = 0
const GoosOpenbsd = 0
const GoosPlan9 = 0
const GoosSolaris = 0
const GoosWindows = 0
const GoosZos = 0
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const GoosAndroid = 0
const GoosDarwin = 0
const GoosDragonfly = 0
const GoosFreebsd = 1
const GoosHarvey = 0
const GoosLinux = 0
const GoosNacl = 0
const GoosNetbsd = 0
const GoosOpenbsd = 0
const GoosPlan9 = 0
const GoosSolaris = 0
const GoosWindows = 0
const GoosZos = 0
19 changes: 19 additions & 0 deletions src/runtime/internal/sys/zgoos_harvey.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// generated by gengoos.go using 'go generate'

package sys

const GOOS = `harvey`

const GoosAndroid = 0
const GoosDarwin = 0
const GoosDragonfly = 0
const GoosFreebsd = 0
const GoosHarvey = 1
const GoosLinux = 0
const GoosNacl = 0
const GoosNetbsd = 0
const GoosOpenbsd = 0
const GoosPlan9 = 0
const GoosSolaris = 0
const GoosWindows = 0
const GoosZos = 0
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ const GoosAndroid = 0
const GoosDarwin = 0
const GoosDragonfly = 0
const GoosFreebsd = 0
const GoosHarvey = 0
const GoosLinux = 1
const GoosNacl = 0
const GoosNetbsd = 0
const GoosOpenbsd = 0
const GoosPlan9 = 0
const GoosSolaris = 0
const GoosWindows = 0
const GoosZos = 0
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_nacl.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const GoosAndroid = 0
const GoosDarwin = 0
const GoosDragonfly = 0
const GoosFreebsd = 0
const GoosHarvey = 0
const GoosLinux = 0
const GoosNacl = 1
const GoosNetbsd = 0
const GoosOpenbsd = 0
const GoosPlan9 = 0
const GoosSolaris = 0
const GoosWindows = 0
const GoosZos = 0
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_netbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const GoosAndroid = 0
const GoosDarwin = 0
const GoosDragonfly = 0
const GoosFreebsd = 0
const GoosHarvey = 0
const GoosLinux = 0
const GoosNacl = 0
const GoosNetbsd = 1
const GoosOpenbsd = 0
const GoosPlan9 = 0
const GoosSolaris = 0
const GoosWindows = 0
const GoosZos = 0
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const GoosAndroid = 0
const GoosDarwin = 0
const GoosDragonfly = 0
const GoosFreebsd = 0
const GoosHarvey = 0
const GoosLinux = 0
const GoosNacl = 0
const GoosNetbsd = 0
const GoosOpenbsd = 1
const GoosPlan9 = 0
const GoosSolaris = 0
const GoosWindows = 0
const GoosZos = 0
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_plan9.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const GoosAndroid = 0
const GoosDarwin = 0
const GoosDragonfly = 0
const GoosFreebsd = 0
const GoosHarvey = 0
const GoosLinux = 0
const GoosNacl = 0
const GoosNetbsd = 0
const GoosOpenbsd = 0
const GoosPlan9 = 1
const GoosSolaris = 0
const GoosWindows = 0
const GoosZos = 0
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_solaris.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const GoosAndroid = 0
const GoosDarwin = 0
const GoosDragonfly = 0
const GoosFreebsd = 0
const GoosHarvey = 0
const GoosLinux = 0
const GoosNacl = 0
const GoosNetbsd = 0
const GoosOpenbsd = 0
const GoosPlan9 = 0
const GoosSolaris = 1
const GoosWindows = 0
const GoosZos = 0
2 changes: 2 additions & 0 deletions src/runtime/internal/sys/zgoos_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ const GoosAndroid = 0
const GoosDarwin = 0
const GoosDragonfly = 0
const GoosFreebsd = 0
const GoosHarvey = 0
const GoosLinux = 0
const GoosNacl = 0
const GoosNetbsd = 0
const GoosOpenbsd = 0
const GoosPlan9 = 0
const GoosSolaris = 0
const GoosWindows = 1
const GoosZos = 0