diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-09-06 12:41:28 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2020-09-11 08:59:01 -0400 |
| commit | b4eb0992614acc242169154d434db658ef6790e0 (patch) | |
| tree | acd22aef88368b673ed30a436031356522ee9e93 /src/bootstrap/builder | |
| parent | 3193d52a21576b8c93f00132c784cce1159f733e (diff) | |
| download | rust-b4eb0992614acc242169154d434db658ef6790e0.tar.gz rust-b4eb0992614acc242169154d434db658ef6790e0.zip | |
Verify we compile std without involving a b host compiler
Diffstat (limited to 'src/bootstrap/builder')
| -rw-r--r-- | src/bootstrap/builder/tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bootstrap/builder/tests.rs b/src/bootstrap/builder/tests.rs index 144c4dc4c95..c6eac95c345 100644 --- a/src/bootstrap/builder/tests.rs +++ b/src/bootstrap/builder/tests.rs @@ -217,6 +217,16 @@ mod dist { dist::Std { compiler: Compiler { host: a, stage: 1 }, target: b }, ] ); + assert_eq!( + first(builder.cache.all::<compile::Std>()), + &[ + compile::Std { compiler: Compiler { host: a, stage: 0 }, target: a }, + compile::Std { compiler: Compiler { host: a, stage: 1 }, target: a }, + compile::Std { compiler: Compiler { host: a, stage: 2 }, target: a }, + compile::Std { compiler: Compiler { host: a, stage: 1 }, target: b }, + compile::Std { compiler: Compiler { host: a, stage: 2 }, target: b }, + ], + ); assert_eq!(first(builder.cache.all::<dist::Src>()), &[dist::Src]); } |
