1rust: rustdoc reproducibility issue fix
2
3rust: rustdoc reproducibility issue fix
4
5The 'codegen-units' option split the crate into multiple compilation units for parallel compilation. Currently, this split is causing the rustdoc to generate differnt binary between the builds.
6To fix this the codegen-units & the lto options are disabled.
7
8More info about options:
9https://doc.rust-lang.org/cargo/reference/profiles.html#codegen-units
10https://doc.rust-lang.org/rustc/codegen-options/index.html#lto
11
12Upstream-Status: Inappropriate [oe specific]
13
14Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
15---
16--- a/.cargo/config.toml
17+++ b/.cargo/config.toml
18@@ -3,3 +3,7 @@
19
20 [source.vendored-sources]
21 directory = "vendor"
22+
23+[profile.release]
24+codegen-units = 1
25+
26
27