Skip to content

Commit 063e68b

Browse files
committed
rustbuild: Add make check and a check target
We'll tack on more steps here later
1 parent 388ccda commit 063e68b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/bootstrap/build/step.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,19 @@ macro_rules! targets {
5353
// with braces are unstable so we just pick something that works.
5454
(llvm, Llvm { _dummy: () }),
5555
(compiler_rt, CompilerRt { _dummy: () }),
56+
57+
// Steps for various pieces of documentation that we can generate,
58+
// the 'doc' step is just a pseudo target to depend on a bunch of
59+
// others.
5660
(doc, Doc { stage: u32 }),
5761
(doc_book, DocBook { stage: u32 }),
5862
(doc_nomicon, DocNomicon { stage: u32 }),
5963
(doc_style, DocStyle { stage: u32 }),
6064
(doc_standalone, DocStandalone { stage: u32 }),
65+
66+
// Steps for running tests. The 'check' target is just a pseudo
67+
// target to depend on a bunch of others.
68+
(check, Check { stage: u32, compiler: Compiler<'a> }),
6169
}
6270
}
6371
}
@@ -175,6 +183,7 @@ fn add_steps<'a>(build: &'a Build,
175183
"doc-nomicon" => targets.push(host.doc_nomicon(stage)),
176184
"doc-book" => targets.push(host.doc_book(stage)),
177185
"doc" => targets.push(host.doc(stage)),
186+
"check" => targets.push(host.check(stage, compiler)),
178187
_ => panic!("unknown build target: `{}`", step),
179188
}
180189
}
@@ -240,6 +249,9 @@ impl<'a> Step<'a> {
240249
vec![self.doc_book(stage), self.doc_nomicon(stage),
241250
self.doc_style(stage), self.doc_standalone(stage)]
242251
}
252+
Source::Check { stage, compiler: _ } => {
253+
vec![]
254+
}
243255
}
244256
}
245257
}

src/bootstrap/mk/Makefile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ book:
3636
$(Q)$(BOOTSTRAP) --step doc-book
3737
standalone-docs:
3838
$(Q)$(BOOTSTRAP) --step doc-standalone
39+
check:
40+
$(Q)$(BOOTSTRAP) --step check

0 commit comments

Comments
 (0)