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

Deterministic builds #93

Closed
pepyakin opened this issue Mar 19, 2018 · 2 comments
Closed

Deterministic builds #93

pepyakin opened this issue Mar 19, 2018 · 2 comments

Comments

@pepyakin
Copy link
Member

Is it reasonable to expect that rustc will generate same wasm binaries (i.e. byte-to-byte) for same source inputs on every invocation on every host platform?

cc @alexcrichton

@est31
Copy link

est31 commented Mar 19, 2018

Right now that is not the case at least because of panic information storing the full path... only the panic printer omits the components before the file. You can turn this off though IIRC with an option. Otherwise there is rust-lang/rust#34902 to track deterministic builds.

@alexcrichton
Copy link
Contributor

A good question! Builds should in theory be as deterministic as other platforms like OSX/Linux/Windows. We certainly expect them to be deterministic to the best degree possible, and if there's any reason they aren't I think we'd definitely consider it a bug! Even across multiple OS-es I think we can and definitely should strive to have it be byte-for-byte reproducible for wasm.

If anything comes up where it's not though feel free to open an issue on rust-lang/rust!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants