You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/bootstrap/src/core/builder/tests.rs
+87-3Lines changed: 87 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1493,7 +1493,7 @@ mod snapshot {
1493
1493
/// This also serves as an important regression test for <https://github.com/rust-lang/rust/issues/138123>
1494
1494
/// and <https://github.com/rust-lang/rust/issues/138004>.
1495
1495
#[test]
1496
-
fndist_all_cross(){
1496
+
fndist_all_cross_extended(){
1497
1497
let ctx = TestCtx::new();
1498
1498
insta::assert_snapshot!(
1499
1499
ctx
@@ -1571,8 +1571,77 @@ mod snapshot {
1571
1571
");
1572
1572
}
1573
1573
1574
-
// Enable dist cranelift tarball by default with `x dist` if cranelift is enabled in
1575
-
// `rust.codegen-backends`.
1574
+
/// Simulates e.g. the powerpc64 builder, which is fully cross-compiled from x64, but it does
1575
+
/// not build docs. Crutically, it shouldn't build host stage 2 rustc.
1576
+
#[test]
1577
+
fndist_all_cross_extended_no_docs(){
1578
+
let ctx = TestCtx::new();
1579
+
let steps = ctx
1580
+
.config("dist")
1581
+
.hosts(&[TEST_TRIPLE_1])
1582
+
.targets(&[TEST_TRIPLE_1])
1583
+
.args(&[
1584
+
"--set",
1585
+
"rust.channel=nightly",
1586
+
"--set",
1587
+
"build.extended=true",
1588
+
"--set",
1589
+
"build.docs=false",
1590
+
])
1591
+
.get_steps();
1592
+
1593
+
// Make sure that we don't build stage2 host rustc
0 commit comments