-
Notifications
You must be signed in to change notification settings - Fork 30
Reproducible .wasm file builds #4772
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
Comments
With a hex dump, the difference is 16 bytes somewhere deep in the middle of the .wasm files:
|
Thank you for reporting :) The differential section is |
I'm curious whether this also occurs during release builds? |
Answer: yes |
|
While I was building .wasm files with various languages (AssemblyScript, C, C++, C#, Go, Grain, Haskell, Motoko, Rust, Zig), I noticed that Swift is the only one that generates a different .wasm file after every build.
In practice, if you store .wasm files in Git or otherwise rely on change detection, you get a new version after every build, even if the source code didn't change.
This is not a big problem for me, but I thought I'd mention it, since it appears to be unique to Swift. Please feel free to close the issue if it's out of scope of the project.
The text was updated successfully, but these errors were encountered: