about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-08-26 17:02:41 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-08-26 17:13:09 +0200
commit5ce678a7bc5ef0102dc8fccb13baa6b36b0f16ce (patch)
tree307781d2aead381d614a9b941789bfa782213264 /src/bootstrap
parent4356e83c77cb28113411fb8e2219127f708095b5 (diff)
downloadrust-5ce678a7bc5ef0102dc8fccb13baa6b36b0f16ce.tar.gz
rust-5ce678a7bc5ef0102dc8fccb13baa6b36b0f16ce.zip
bootstrap: error early if any `codegen-backends` is set to `[]`
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/config/toml/rust.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/config/toml/rust.rs b/src/bootstrap/src/core/config/toml/rust.rs
index 7f111094c3f..c54df456d52 100644
--- a/src/bootstrap/src/core/config/toml/rust.rs
+++ b/src/bootstrap/src/core/config/toml/rust.rs
@@ -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
 }