delve/cmd/dlv/main.go

20 lines
323 B
Go
Raw Normal View History

2014-05-20 21:29:01 +00:00
package main
import (
"os"
"github.com/derekparker/delve/cmd/dlv/cmds"
2017-02-08 16:00:44 +00:00
"github.com/derekparker/delve/pkg/version"
)
2015-12-13 21:51:11 +00:00
// Build is the git sha of this binaries build.
var Build string
func main() {
if Build != "" {
version.DelveVersion.Build = Build
}
os.Setenv("CGO_CFLAGS", "-O -g")
cmds.New(false).Execute()
}