delve/cmd/dlv/main.go
aarzilli 5fdcd2c91a cmd, proc/test: disable optimizations on the C compiler
Pass CGO_FLAGS='-O0 -g' to go build to disable optimizations when
calling the C compiler.
2017-11-28 11:00:53 -08:00

20 lines
323 B
Go

package main
import (
"os"
"github.com/derekparker/delve/cmd/dlv/cmds"
"github.com/derekparker/delve/pkg/version"
)
// 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()
}