3 ms·
This implies that reproducible builds aren’t supported by Rust. I didn’t realize that. One step of making a build bit-for-bit reproducible is stripping out th
by hedora 6y ago
This implies that reproducible builds aren’t supported by Rust. I didn’t realize that.
One step of making a build bit-for-bit reproducible is stripping out the leading parts of paths. I suppose you could achieve this with tooling that always builds in /opt and only links to /opt (or something), but the article says no such tooling exists.
- bonzini 6y agoThe article actually says that you cnn work around the issue using containers.
- rrss 6y agoRust supports reproducible builds. There are options to remap file prefixes. This is the same situation as gcc and clang.
- uglycoyote 6y agoanother thing that ruins reproducible builds is date stamps in the executable. Microsoft's C++ compiler has that issue. I'm not sure how common that is in other compilers
- JeremyBanks 6y agoRust is working toward fully reproducible builds; you can see outstanding issues here: https://github.com/rust-lang/rust/labels/A-reproducibility https://github.com/rust-lang/rust/labels/A-reproducibility . The compiler already has options to enable many sources of variability. I've had success with reproducible builds for WASM.