diff options
author | Yash Shinde <Yash.Shinde@windriver.com> | 2024-08-08 03:00:34 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-09 22:33:38 +0100 |
commit | be70d81a3cc2775c38270653570e9089f0a68701 (patch) | |
tree | 6a4126dd08aaabcd8aba8dc452f0d4b7695e8d27 /meta/recipes-devtools/rust/files/target-build-value.patch | |
parent | ab1bd4a04bc7d392d3910cb9adf2f950508dd684 (diff) | |
download | poky-be70d81a3cc2775c38270653570e9089f0a68701.tar.gz |
rust: Upgrade 1.75.0->1.76.0
* Drop "--doc" option for rust oe-selftest since
it is not supported on bootstrap builds for
cross-targets.
* Drop the following backported patches which are merged
with rust v1.76 upgrade.
- custom-target-cfg.patch
- rustc-bootstrap.patch
- rv32-missing-syscalls.patch
- target-build-value.patch
https://blog.rust-lang.org/2024/02/08/Rust-1.76.0.html
* Drop 'rust-rustdoc' and 'rust-dbg' from 'exclude_packages' list
to check for rust reproducibility.
(From OE-Core rev: 71d17ed3c7be029fc68e9dd3f5d6c4aa72ef861a)
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/files/target-build-value.patch')
-rw-r--r-- | meta/recipes-devtools/rust/files/target-build-value.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/meta/recipes-devtools/rust/files/target-build-value.patch b/meta/recipes-devtools/rust/files/target-build-value.patch deleted file mode 100644 index cf59afba5a..0000000000 --- a/meta/recipes-devtools/rust/files/target-build-value.patch +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | Add correct build value for cross-compiled targets on stage1 when | ||
2 | bootstapping rustc. | ||
3 | |||
4 | Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/119619/commits/b888e2f82b9dbe81875f50d13adbc0271a9401ff] | ||
5 | |||
6 | Signed-off-by: onur-ozkan <work@onurozkan.dev> | ||
7 | Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> | ||
8 | --- | ||
9 | diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs | ||
10 | --- a/src/bootstrap/src/core/build_steps/test.rs | ||
11 | +++ b/src/bootstrap/src/core/build_steps/test.rs | ||
12 | @@ -1489,8 +1489,12 @@ | ||
13 | // NOTE: Only stage 1 is special cased because we need the rustc_private artifacts to match the | ||
14 | // running compiler in stage 2 when plugins run. | ||
15 | let stage_id = if suite == "ui-fulldeps" && compiler.stage == 1 { | ||
16 | - compiler = builder.compiler(compiler.stage - 1, target); | ||
17 | - format!("stage{}-{}", compiler.stage + 1, target) | ||
18 | + // At stage 0 (stage - 1) we are using the beta compiler. Using `self.target` can lead finding | ||
19 | + // an incorrect compiler path on cross-targets, as the stage 0 beta compiler is always equal | ||
20 | + // to `build.build` in the configuration. | ||
21 | + let build = builder.build.build; | ||
22 | + compiler = builder.compiler(compiler.stage - 1, build); | ||
23 | + format!("stage{}-{}", compiler.stage + 1, build) | ||
24 | } else { | ||
25 | format!("stage{}-{}", compiler.stage, target) | ||
26 | }; | ||