mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-27 03:45:38 +08:00
27 lines
453 B
Go
27 lines
453 B
Go
package main
|
|
|
|
import (
|
|
"go/build"
|
|
"os"
|
|
"os/exec"
|
|
|
|
"github.com/sagernet/sing-box/cmd/internal/build_shared"
|
|
"github.com/sagernet/sing-box/log"
|
|
)
|
|
|
|
func main() {
|
|
build_shared.FindSDK()
|
|
|
|
if os.Getenv("build.Default.GOPATH") == "" {
|
|
os.Setenv("GOPATH", build.Default.GOPATH)
|
|
}
|
|
|
|
command := exec.Command(os.Args[1], os.Args[2:]...)
|
|
command.Stdout = os.Stdout
|
|
command.Stderr = os.Stderr
|
|
err := command.Run()
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|