Skip to content

Commit 5ce678a

Browse files
bootstrap: error early if any codegen-backends is set to []
1 parent 4356e83 commit 5ce678a

File tree

1 file changed

+4
-0
lines changed
  • src/bootstrap/src/core/config/toml

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/config/toml/rust.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ pub(crate) fn parse_codegen_backends(
415415
};
416416
found_backends.push(backend);
417417
}
418+
if found_backends.is_empty() {
419+
eprintln!("ERROR: `{section}.codegen-backends` should not be set to `[]`");
420+
exit!(1);
421+
}
418422
found_backends
419423
}
420424

0 commit comments

Comments
 (0)