bootstrap: better error message for no_std docs
This commit is contained in:
parent
600ec28483
commit
935e281959
1 changed files with 6 additions and 0 deletions
|
@ -432,6 +432,12 @@ impl Step for Std {
|
|||
let stage = self.stage;
|
||||
let target = self.target;
|
||||
builder.info(&format!("Documenting stage{} std ({})", stage, target));
|
||||
if builder.no_std(target) == Some(true) {
|
||||
panic!(
|
||||
"building std documentation for no_std target {target} is not supported\n\
|
||||
Set `docs = false` in the config to disable documentation."
|
||||
);
|
||||
}
|
||||
let out = builder.doc_out(target);
|
||||
t!(fs::create_dir_all(&out));
|
||||
let compiler = builder.compiler(stage, builder.config.build);
|
||||
|
|
Loading…
Add table
Reference in a new issue