Skip to content

Commit 1ba4e7b

Browse files
committed
modify rust-build to support incremental, ui tests
1 parent 225fa0f commit 1ba4e7b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/bootstrap/build/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,14 @@ impl Build {
342342
check::compiletest(self, &compiler, target.target,
343343
"codegen-units", "codegen-units");
344344
}
345+
CheckIncremental { compiler } => {
346+
check::compiletest(self, &compiler, target.target,
347+
"incremental", "incremental");
348+
}
349+
CheckUi { compiler } => {
350+
check::compiletest(self, &compiler, target.target,
351+
"ui", "ui");
352+
}
345353
CheckDebuginfo { compiler } => {
346354
if target.target.contains("msvc") ||
347355
target.target.contains("android") {

src/bootstrap/build/step.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ macro_rules! targets {
111111
(check_pfail, CheckPFail { compiler: Compiler<'a> }),
112112
(check_codegen, CheckCodegen { compiler: Compiler<'a> }),
113113
(check_codegen_units, CheckCodegenUnits { compiler: Compiler<'a> }),
114+
(check_incremental, CheckIncremental { compiler: Compiler<'a> }),
115+
(check_ui, CheckUi { compiler: Compiler<'a> }),
114116
(check_debuginfo, CheckDebuginfo { compiler: Compiler<'a> }),
115117
(check_rustdoc, CheckRustdoc { compiler: Compiler<'a> }),
116118
(check_pretty, CheckPretty { compiler: Compiler<'a> }),
@@ -412,6 +414,8 @@ impl<'a> Step<'a> {
412414
Source::CheckPFail { compiler } |
413415
Source::CheckCodegen { compiler } |
414416
Source::CheckCodegenUnits { compiler } |
417+
Source::CheckIncremental { compiler } |
418+
Source::CheckUi { compiler } |
415419
Source::CheckRustdoc { compiler } |
416420
Source::CheckPretty { compiler } |
417421
Source::CheckCFail { compiler } |

0 commit comments

Comments
 (0)