Skip to content

Commit 6c38d38

Browse files
committed
Add doc cross-compilation test
1 parent 566dc98 commit 6c38d38

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/bootstrap/src/core/builder/tests.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,22 @@ mod snapshot {
15791579
[doc] std 1 <host> crates=[alloc,core]
15801580
");
15811581
}
1582+
1583+
#[test]
1584+
fn doc_library_no_std_target_cross_compile() {
1585+
let ctx = TestCtx::new();
1586+
insta::assert_snapshot!(
1587+
ctx.config("doc")
1588+
.path("library")
1589+
.targets(&[TEST_TRIPLE_1])
1590+
.override_target_no_std(TEST_TRIPLE_1)
1591+
.render_steps(), @r"
1592+
[build] llvm <host>
1593+
[build] rustc 0 <host> -> rustc 1 <host>
1594+
[build] rustdoc 0 <host>
1595+
[doc] std 1 <target1> crates=[alloc,core]
1596+
");
1597+
}
15821598
}
15831599

15841600
struct ExecutedSteps {

0 commit comments

Comments
 (0)