Re: [go-nuts] ldflags="-s -w" vs strip

2020-05-27 Thread Ian Lance Taylor
On Wed, May 27, 2020 at 10:08 AM X Xiao wrote: > > what's the difference between `go build -ldflags="-s -w"` and `go build` plus > `strip myBinary`? it seems their result is different, sometimes running > `strip` gives me smaller size, then why bother with ldflags? I just tried a simple hello,

[go-nuts] ldflags="-s -w" vs strip

2020-05-27 Thread X Xiao
what's the difference between `go build -ldflags="-s -w"` and `go build` plus `strip myBinary`? it seems their result is different, sometimes running `strip` gives me smaller size, then why bother with ldflags? -- You received this message because you are subscribed to the Google Groups "golang-