We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1fc603 commit 19663caCopy full SHA for 19663ca
1 file changed
src/bootstrap/src/core/config/toml/rust.rs
@@ -1,6 +1,7 @@
1
//! This module defines the `Rust` struct, which represents the `[rust]` table
2
//! in the `bootstrap.toml` configuration file.
3
4
+use build_helper::ci::CiEnv;
5
use serde::{Deserialize, Deserializer};
6
7
use crate::core::config::toml::TomlConfig;
@@ -422,6 +423,11 @@ pub(crate) fn parse_codegen_backends(
422
423
)
424
}
425
if !BUILTIN_CODEGEN_BACKENDS.contains(&backend.as_str()) {
426
+ if CiEnv::is_rust_lang_managed_ci_job() {
427
+ eprintln!("Unknown codegen backend {backend}");
428
+ exit!(1);
429
+ }
430
+
431
println!(
432
"HELP: '{backend}' for '{section}.codegen-backends' might fail. \
433
List of known codegen backends: {BUILTIN_CODEGEN_BACKENDS:?}"
0 commit comments