-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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-linker: emit build_id section #14820
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the value of wasm.base.options.build_id
and use that to determine whether to emit a build ID. If you wish to change the default of whether build ids are enabled or disabled, that code lives in Compilation.create
.
Please also ensure that the build id makes it into the wasm linker hash, now that this option affects the output. Alternately, ensure that incremental linking notices a change in the build id flag and modifies the output appropriately. For many settings this is already the case since the header is flushed unconditionally.
You beat me to it. Nice work Frank! |
The Build ID is a value that uniquely identifies a build. It is intended to capture the "meaning" or inputs of the build, and is usually associated with debug info. Reference: https://github.com/WebAssembly/tool-conventions/blob/main/BuildId.md
Also use TurboSHAKE instead of BLAKE3 now that we have it.
The Build ID is a value that uniquely identifies a build. It is intended to capture the "meaning" or inputs of the build, and is usually associated with debug info. Reference: https://github.com/WebAssembly/tool-conventions/blob/main/BuildId.md
Make our wasm linker emit the build ID, a value that uniquely identifies a build.
It is intended to capture the "meaning" or inputs of the build, and is usually associated with debug info.
References:
Support for this was also recently added to LLVM: llvm/llvm-project@c7af9ae