1*8460358cSPatrick Williamsrust: rustdoc reproducibility issue fix
2*8460358cSPatrick Williams
3*8460358cSPatrick Williamsrust: rustdoc reproducibility issue fix
4*8460358cSPatrick Williams
5*8460358cSPatrick WilliamsThe '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.
6*8460358cSPatrick WilliamsTo fix this the codegen-units & the lto options are disabled.
7*8460358cSPatrick Williams
8*8460358cSPatrick WilliamsMore info about options:
9*8460358cSPatrick Williamshttps://doc.rust-lang.org/cargo/reference/profiles.html#codegen-units
10*8460358cSPatrick Williamshttps://doc.rust-lang.org/rustc/codegen-options/index.html#lto
11*8460358cSPatrick Williams
12*8460358cSPatrick WilliamsUpstream-Status: Inappropriate [oe specific]
13*8460358cSPatrick Williams
14*8460358cSPatrick WilliamsSigned-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
15*8460358cSPatrick Williams---
16*8460358cSPatrick Williams--- a/.cargo/config.toml
17*8460358cSPatrick Williams+++ b/.cargo/config.toml
18*8460358cSPatrick Williams@@ -3,3 +3,7 @@
19*8460358cSPatrick Williams
20*8460358cSPatrick Williams [source.vendored-sources]
21*8460358cSPatrick Williams directory = "vendor"
22*8460358cSPatrick Williams+
23*8460358cSPatrick Williams+[profile.release]
24*8460358cSPatrick Williams+codegen-units = 1
25*8460358cSPatrick Williams+
26*8460358cSPatrick Williams
27