]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
rust: rustdoc reproducibility issue fix - disable PGO
authorSundeep KOKKONDA <sundeep.kokkonda@windriver.com>
Wed, 20 Dec 2023 10:40:20 +0000 (02:40 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Dec 2023 10:37:28 +0000 (10:37 +0000)
commit189c266378c8c4a918cb205b3888577c7ce76856
tree257b6f4f2505216b07abfc6138f4b58de5ec9b87
parent4bf06bc5487da05e6b4a4895e5ca2da65cdc25d8
rust: rustdoc reproducibility issue fix - disable PGO

The PGO (Profile-guided Optimization) collect data about the typical execution of a program
and then use this data to inform optimizations such as inlining, machine-code layout,
register allocation, etc.

This optimization is by default disabled in rust sources but enabled in Yocto and causing
the reproducibility issue in rustdoc binary. To fix the issue this optimization is set to
it's default 'false'.

More about the optimization: https://doc.rust-lang.org/rustc/profile-guided-optimization.html

With the reproducibility issue fixed, we can enable the reproducibility tests again.

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/rust_1.71.1.bb