mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
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 (From OE-Core rev: 0c00875de10b171f4ff2990af351a8124ec7e972) Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7c1de3118f
commit
e2e7017350
@@ -0,0 +1,26 @@
|
||||
rust: rustdoc reproducibility issue fix
|
||||
|
||||
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
|
||||
|
||||
Upstream-Status: Inappropriate [oe specific]
|
||||
|
||||
Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>
|
||||
---
|
||||
--- a/.cargo/config.toml
|
||||
+++ b/.cargo/config.toml
|
||||
@@ -3,3 +3,7 @@
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
||||
+
|
||||
+[profile.release]
|
||||
+codegen-units = 1
|
||||
+
|
||||
|
||||
Reference in New Issue
Block a user