Patrick Williams | 3965356 | 2024-03-01 08:54:02 -0600 | [diff] [blame] | 1 | rust: reproducibility issue fix with v1.75 |
| 2 | |
| 3 | With 1.75 rust release, the '.rustc' section of shared object libs are embedded with absolute path names which is casuing reproducibiluty issues. |
| 4 | This change will fix the path name format back to '/rust/$hash' as in earlier versions. |
| 5 | |
| 6 | Below are the links for detailed bug description & discusssion with upstream rust. |
| 7 | https://github.com/rust-lang/rust/issues/120825#issuecomment-1964307219 |
| 8 | https://github.com/rust-lang/rust/issues/120825#issuecomment-1964652656 |
| 9 | |
| 10 | Upstream-Status: Inappropriate [patches need rework] |
| 11 | Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com> |
| 12 | --- |
| 13 | --- a/compiler/rustc_session/src/session.rs 2023-12-21 08:55:28.000000000 -0800 |
| 14 | +++ b/compiler/rustc_session/src/session.rs 2024-02-26 07:29:15.527577022 -0800 |
| 15 | @@ -1269,7 +1269,7 @@ |
| 16 | | CrateType::Rlib |
| 17 | | CrateType::Staticlib |
| 18 | | CrateType::Cdylib => continue, |
| 19 | - CrateType::ProcMacro => return false, |
| 20 | + CrateType::ProcMacro => return true, |
| 21 | } |
| 22 | } |
| 23 | |