tinygo
tinygo copied to clipboard
compileopts: silently succeed when there's no debug info to strip
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.