|
|
@ -199,6 +199,65 @@ TS_LINK_FAIL_REFLECT=0 (was <nil>)`,
|
|
|
|
"./cmd/tailcontrol",
|
|
|
|
"./cmd/tailcontrol",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "linux_amd64_to_android_amd64",
|
|
|
|
|
|
|
|
env: map[string]string{
|
|
|
|
|
|
|
|
"GOOS": "android",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
argv: []string{"gocross", "build", "./cmd/tailcontrol"},
|
|
|
|
|
|
|
|
goroot: "/goroot",
|
|
|
|
|
|
|
|
nativeGOOS: "linux",
|
|
|
|
|
|
|
|
nativeGOARCH: "amd64",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
envDiff: `CC=cc (was <nil>)
|
|
|
|
|
|
|
|
CGO_CFLAGS=-O3 -std=gnu11 (was <nil>)
|
|
|
|
|
|
|
|
CGO_ENABLED=0 (was <nil>)
|
|
|
|
|
|
|
|
CGO_LDFLAGS= (was <nil>)
|
|
|
|
|
|
|
|
GOARCH=amd64 (was <nil>)
|
|
|
|
|
|
|
|
GOARM=5 (was <nil>)
|
|
|
|
|
|
|
|
GOMIPS=softfloat (was <nil>)
|
|
|
|
|
|
|
|
GOOS=android (was android)
|
|
|
|
|
|
|
|
GOROOT=/goroot (was <nil>)
|
|
|
|
|
|
|
|
GOTOOLCHAIN=local (was <nil>)
|
|
|
|
|
|
|
|
TS_LINK_FAIL_REFLECT=0 (was <nil>)`,
|
|
|
|
|
|
|
|
wantArgv: []string{
|
|
|
|
|
|
|
|
"gocross", "build",
|
|
|
|
|
|
|
|
"-trimpath",
|
|
|
|
|
|
|
|
"-tags=tailscale_go",
|
|
|
|
|
|
|
|
"-ldflags", "-X tailscale.com/version.longStamp=1.2.3-long -X tailscale.com/version.shortStamp=1.2.3 -X tailscale.com/version.gitCommitStamp=abcd -X tailscale.com/version.extraGitCommitStamp=defg",
|
|
|
|
|
|
|
|
"./cmd/tailcontrol",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "linux_amd64_to_android_amd64_cgo",
|
|
|
|
|
|
|
|
env: map[string]string{
|
|
|
|
|
|
|
|
"GOOS": "android",
|
|
|
|
|
|
|
|
"CGO_ENABLED": "1",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
argv: []string{"gocross", "build", "./cmd/tailcontrol"},
|
|
|
|
|
|
|
|
goroot: "/goroot",
|
|
|
|
|
|
|
|
nativeGOOS: "linux",
|
|
|
|
|
|
|
|
nativeGOARCH: "amd64",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
envDiff: `CC=cc (was <nil>)
|
|
|
|
|
|
|
|
CGO_CFLAGS=-O3 -std=gnu11 (was <nil>)
|
|
|
|
|
|
|
|
CGO_ENABLED=1 (was 1)
|
|
|
|
|
|
|
|
CGO_LDFLAGS= (was <nil>)
|
|
|
|
|
|
|
|
GOARCH=amd64 (was <nil>)
|
|
|
|
|
|
|
|
GOARM=5 (was <nil>)
|
|
|
|
|
|
|
|
GOMIPS=softfloat (was <nil>)
|
|
|
|
|
|
|
|
GOOS=android (was android)
|
|
|
|
|
|
|
|
GOROOT=/goroot (was <nil>)
|
|
|
|
|
|
|
|
GOTOOLCHAIN=local (was <nil>)
|
|
|
|
|
|
|
|
TS_LINK_FAIL_REFLECT=0 (was <nil>)`,
|
|
|
|
|
|
|
|
wantArgv: []string{
|
|
|
|
|
|
|
|
"gocross", "build",
|
|
|
|
|
|
|
|
"-trimpath",
|
|
|
|
|
|
|
|
"-tags=tailscale_go",
|
|
|
|
|
|
|
|
"-ldflags", "-X tailscale.com/version.longStamp=1.2.3-long -X tailscale.com/version.shortStamp=1.2.3 -X tailscale.com/version.gitCommitStamp=abcd -X tailscale.com/version.extraGitCommitStamp=defg",
|
|
|
|
|
|
|
|
"./cmd/tailcontrol",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
name: "darwin_arm64_to_darwin_arm64",
|
|
|
|
name: "darwin_arm64_to_darwin_arm64",
|
|
|
|
argv: []string{"gocross", "build", "./cmd/tailcontrol"},
|
|
|
|
argv: []string{"gocross", "build", "./cmd/tailcontrol"},
|
|
|
|