Skip to content

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

@radkomih

Description

@radkomih

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

🆕 New

Relationships

None yet

Development

No branches or pull requests

Issue actions