mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
tool/gocross: add command to print the wrapper shell script
So that when importing and using gocross from other repos, there's an easy way to get at the right wrapper script that's in sync with the gocross binary. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
860734aed9
commit
499d82af8a
@ -56,6 +56,9 @@ func main() {
|
||||
}
|
||||
fmt.Println(filepath.Join(toolchain, "bin/go"))
|
||||
os.Exit(0)
|
||||
case "gocross-print-wrapper-script":
|
||||
fmt.Println(wrapperScript)
|
||||
os.Exit(0)
|
||||
}
|
||||
}
|
||||
|
||||
@ -94,6 +97,9 @@ func main() {
|
||||
doExec(filepath.Join(toolchain, "bin/go"), args, os.Environ())
|
||||
}
|
||||
|
||||
//go:embed gocross-wrapper.sh
|
||||
var wrapperScript string
|
||||
|
||||
func debug(format string, args ...interface{}) {
|
||||
debug := os.Getenv("GOCROSS_DEBUG")
|
||||
var (
|
||||
|
Loading…
x
Reference in New Issue
Block a user