go install gcflags -I -N
https://gist.github.com/3025333
https://gist.github.com/3025333
Turning off optimization and inlining in Go gc compilers
Pass the flags -gcflags '-N -l'
.
$ go build -gcflags '-N -l' [code.go]
or
$ go install -gcflags '-N -l' [code.go]
References
- http://code.google.com/p/go/issues/detail?id=3363
- https://groups.google.com/forum/?fromgroups#!topic/golang-nuts/6m8bZYik8Ss
有疑问加站长微信联系(非本文作者)