Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for passing the -g flag to wasm-opt #321

Open
radkomih opened this issue Dec 21, 2023 · 0 comments
Open

add support for passing the -g flag to wasm-opt #321

radkomih opened this issue Dec 21, 2023 · 0 comments
Assignees

Comments

@radkomih
Copy link
Collaborator

In addition to the --no-debug flag supported by Tinygo, there is another flag supported by wasm-opt and used by default in previous releases of our Tinygo fork:
"--debuginfo,-g" - Emit names section in wasm binary (or full debuginfo in wast)
It was recently removed (to reduce the binary size), but this also makes the stack traces harder to understand. Instead, we should be able to conditionally pass it to the Tinygo build process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants