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
wasm: emit producer custom section #33295
Comments
@neelance - thoughts ? We already use the custom section for recording the buildid. |
Sure, we can add this. Sounds useful. Maybe |
SGTM. |
For DWARF, we set DW_AT_producer to "Go cmd/compile <version>". Maybe we can consider doing the same. |
@xtuc Is there already some tool that prints the contents of the producer section (and checks its format while doing so)? |
I use to print it out https://github.com/xtuc/webassemblyjs/blob/master/packages/cli/src/get-producer-section.js, it will fail to parse if the format is invalid. |
Change https://golang.org/cl/196804 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOHOSTARCH="amd64"
GOHOSTOS="linux"
go env
OutputWhat did you do?
Build with
GOOS=js GOARCH=wasm
.What did you expect to see?
A wasm producers custom section: https://github.com/WebAssembly/tool-conventions/blob/master/ProducersSection.md with Golang's compiler and its version (or the git hash).
What did you see instead?
Not present.
The text was updated successfully, but these errors were encountered: