mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 18:57:18 +08:00 
			
		
		
		
	 5fdcd2c91a
			
		
	
	5fdcd2c91a
	
	
	
		
			
			Pass CGO_FLAGS='-O0 -g' to go build to disable optimizations when calling the C compiler.
		
			
				
	
	
		
			20 lines
		
	
	
		
			323 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			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()
 | |
| }
 |