diff options
| author | Yash Shinde <Yash.Shinde@windriver.com> | 2024-08-08 03:00:33 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-09 22:33:38 +0100 |
| commit | ab1bd4a04bc7d392d3910cb9adf2f950508dd684 (patch) | |
| tree | b0b86aa27eace453fc71f0a74d41c495ec097f80 /meta/recipes-devtools/rust/files/cross-targets-backport.patch | |
| parent | 2bf34e2859879b912fa1bc9d9d0124233bc2081c (diff) | |
| download | poky-ab1bd4a04bc7d392d3910cb9adf2f950508dd684.tar.gz | |
rust: Oe-selftest fixes for rust v1.76
Add the failing tests in rust v1.76 to the exclude list
and add "ignore" tags to ignore failing unit test cases.
(From OE-Core rev: 75399802515ac423503e637281a4585dd00d7c75)
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/cross-targets-backport.patch')
| -rw-r--r-- | meta/recipes-devtools/rust/files/cross-targets-backport.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/files/cross-targets-backport.patch b/meta/recipes-devtools/rust/files/cross-targets-backport.patch new file mode 100644 index 0000000000..6613cfa6b1 --- /dev/null +++ b/meta/recipes-devtools/rust/files/cross-targets-backport.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | Backport the patch for "ensure std for cross-targets". | ||
| 2 | |||
| 3 | Previously, doing `x test compiler/*` would fail the build due to missing std. | ||
| 4 | This change ensures that it is prepared. | ||
| 5 | |||
| 6 | Also, add "[ignore]" tags to the failing unit tests to | ||
| 7 | ignore them during rust oe-selftest. | ||
| 8 | |||
| 9 | Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/122205/commits/5aece7fad06baaa745784d118db862b3e3ccf7f8] | ||
| 10 | |||
| 11 | Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> | ||
| 12 | --- | ||
| 13 | diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs | ||
| 14 | index 4a4497e57db..da8c88dcd41 100644 | ||
| 15 | --- a/src/bootstrap/src/core/build_steps/test.rs | ||
| 16 | +++ b/src/bootstrap/src/core/build_steps/test.rs | ||
| 17 | @@ -2505,8 +2505,12 @@ | ||
| 18 | let mode = self.mode; | ||
| 19 | |||
| 20 | // See [field@compile::Std::force_recompile]. | ||
| 21 | - builder.ensure(compile::Std::force_recompile(compiler, target)); | ||
| 22 | - builder.ensure(RemoteCopyLibs { compiler, target }); | ||
| 23 | + builder.ensure(compile::Std::force_recompile(compiler, compiler.host)); | ||
| 24 | + | ||
| 25 | + if builder.config.build != target { | ||
| 26 | + builder.ensure(compile::Std::force_recompile(compiler, target)); | ||
| 27 | + builder.ensure(RemoteCopyLibs { compiler, target }); | ||
| 28 | + } | ||
| 29 | |||
| 30 | // If we're not doing a full bootstrap but we're testing a stage2 | ||
| 31 | // version of libstd, then what we're actually testing is the libstd | ||
