Files
poky/meta/recipes-devtools/rust/files/cross-targets-backport.patch
Yash Shinde ab1bd4a04b 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>
2024-08-09 22:33:38 +01:00

32 lines
1.3 KiB
Diff

Backport the patch for "ensure std for cross-targets".
Previously, doing `x test compiler/*` would fail the build due to missing std.
This change ensures that it is prepared.
Also, add "[ignore]" tags to the failing unit tests to
ignore them during rust oe-selftest.
Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/122205/commits/5aece7fad06baaa745784d118db862b3e3ccf7f8]
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
---
diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
index 4a4497e57db..da8c88dcd41 100644
--- a/src/bootstrap/src/core/build_steps/test.rs
+++ b/src/bootstrap/src/core/build_steps/test.rs
@@ -2505,8 +2505,12 @@
let mode = self.mode;
// See [field@compile::Std::force_recompile].
- builder.ensure(compile::Std::force_recompile(compiler, target));
- builder.ensure(RemoteCopyLibs { compiler, target });
+ builder.ensure(compile::Std::force_recompile(compiler, compiler.host));
+
+ if builder.config.build != target {
+ builder.ensure(compile::Std::force_recompile(compiler, target));
+ builder.ensure(RemoteCopyLibs { compiler, target });
+ }
// If we're not doing a full bootstrap but we're testing a stage2
// version of libstd, then what we're actually testing is the libstd