}
if builder.no_std(target) == Some(true) {
- // for no_std run-make (e.g. thumb*),
+ // for no_std run-make (e.g., thumb*),
// we need a host compiler which is called by cargo.
builder.ensure(compile::Std { compiler, target: compiler.host });
}
cmd.arg("--bless");
}
- let compare_mode = builder.config.cmd.compare_mode().or(self.compare_mode);
+ let compare_mode = builder.config.cmd.compare_mode().or_else(|| {
+ if builder.config.test_compare_mode {
+ self.compare_mode
+ } else {
+ None
+ }
+ });
if let Some(ref nodejs) = builder.config.nodejs {
cmd.arg("--nodejs").arg(nodejs);
/// Run `rustdoc --test` for all documentation in `src/doc`.
///
- /// This will run all tests in our markdown documentation (e.g. the book)
+ /// This will run all tests in our markdown documentation (e.g., the book)
/// located in `src/doc`. The `rustdoc` that's run is the one that sits next to
/// `compiler`.
fn run(self, builder: &Builder) {