2
0
mirror of https://codeberg.org/kiss-community/repo synced 2025-01-22 10:24:48 -07:00
repo/extra/rust/patches/fix-bootstrap.patch

15 lines
764 B
Diff
Raw Normal View History

2025-01-10 21:43:36 -07:00
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs
index e706aba..35d69a6 100644
--- a/src/bootstrap/src/core/config/config.rs
+++ b/src/bootstrap/src/core/config/config.rs
@@ -2786,8 +2786,7 @@ impl Config {
// If `download-rustc` is not set, default to rebuilding.
let if_unchanged = match download_rustc {
- None => self.rust_info.is_managed_git_subrepository(),
- Some(StringOrBool::Bool(false)) => return None,
+ None | Some(StringOrBool::Bool(false)) => return None,
Some(StringOrBool::Bool(true)) => false,
Some(StringOrBool::String(s)) if s == "if-unchanged" => {
if !self.rust_info.is_managed_git_subrepository() {