mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
bootstrap: error early if any codegen-backends is set to []
This commit is contained in:
@@ -415,6 +415,10 @@ pub(crate) fn parse_codegen_backends(
|
||||
};
|
||||
found_backends.push(backend);
|
||||
}
|
||||
if found_backends.is_empty() {
|
||||
eprintln!("ERROR: `{section}.codegen-backends` should not be set to `[]`");
|
||||
exit!(1);
|
||||
}
|
||||
found_backends
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user