Skip to content

Commit b4eb099

Browse files
Verify we compile std without involving a b host compiler
1 parent 3193d52 commit b4eb099

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/bootstrap/builder/tests.rs

+10
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@ mod dist {
217217
dist::Std { compiler: Compiler { host: a, stage: 1 }, target: b },
218218
]
219219
);
220+
assert_eq!(
221+
first(builder.cache.all::<compile::Std>()),
222+
&[
223+
compile::Std { compiler: Compiler { host: a, stage: 0 }, target: a },
224+
compile::Std { compiler: Compiler { host: a, stage: 1 }, target: a },
225+
compile::Std { compiler: Compiler { host: a, stage: 2 }, target: a },
226+
compile::Std { compiler: Compiler { host: a, stage: 1 }, target: b },
227+
compile::Std { compiler: Compiler { host: a, stage: 2 }, target: b },
228+
],
229+
);
220230
assert_eq!(first(builder.cache.all::<dist::Src>()), &[dist::Src]);
221231
}
222232

0 commit comments

Comments
 (0)