tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

compileopts: silently succeed when there's no debug info to strip

Open codefromthecrypt opened this issue 3 years ago • 0 comments

Before, on the baremetal target or MacOS, we erred if the user provided configuration to strip debug info.

Ex.

$ tinygo build -o main.go  -scheduler=none --no-debug  main.go
error: cannot remove debug information: MacOS doesn't store debug info in the executable by default

This is a poor experience which results in having OS-specific CLI behavior. Silently succeeding is good keeping with the Linux philosophy and less distracting than logging the same without failing.

codefromthecrypt avatar Sep 21 '22 05:09 codefromthecrypt