]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
rust: rustdoc reproducibility issue fix
authorSundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Fri, 26 Jul 2024 13:35:59 +0000 (06:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Jul 2024 11:32:44 +0000 (12:32 +0100)
commit0c00875de10b171f4ff2990af351a8124ec7e972
tree481c85128194af2ffe3758cf456d2b8884a1411b
parent662396533177b72cc1d83e95841b27f7e42dcb20
rust: rustdoc reproducibility issue fix

The '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.
To fix this the codegen-units & the lto options are disabled.

More info about options:
https://doc.rust-lang.org/cargo/reference/profiles.html#codegen-units
https://doc.rust-lang.org/rustc/codegen-options/index.html#lto

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/reproducible.py
meta/recipes-devtools/rust/files/rustdoc-repro-issue-fix-cargo-config-for-codegenunits.patch [new file with mode: 0644]
meta/recipes-devtools/rust/rust-source.inc
meta/recipes-devtools/rust/rust_1.75.0.bb