diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-26 17:02:41 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-26 17:13:09 +0200 |
| commit | 5ce678a7bc5ef0102dc8fccb13baa6b36b0f16ce (patch) | |
| tree | 307781d2aead381d614a9b941789bfa782213264 /src/bootstrap | |
| parent | 4356e83c77cb28113411fb8e2219127f708095b5 (diff) | |
| download | rust-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.rs | 4 |
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 } |
