diff options
| author | 12101111 <w12101111@gmail.com> | 2024-05-03 22:53:53 +0800 |
|---|---|---|
| committer | 12101111 <w12101111@gmail.com> | 2024-05-03 22:53:53 +0800 |
| commit | f13edeb4514368b4b3748e8f437fd6a166d95aff (patch) | |
| tree | da85bd4981bbf8841d6b35e85b7e2ab1389c2cc3 | |
| parent | 561b5dea1e7e5c21f0fb550ca579229ceb878297 (diff) | |
| download | rust-f13edeb4514368b4b3748e8f437fd6a166d95aff.tar.gz rust-f13edeb4514368b4b3748e8f437fd6a166d95aff.zip | |
Fix bootstrap panic when build from tarball
| -rw-r--r-- | src/bootstrap/src/core/builder.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/bootstrap/src/core/builder.rs b/src/bootstrap/src/core/builder.rs index 0ad6c959309..6c4b26ec219 100644 --- a/src/bootstrap/src/core/builder.rs +++ b/src/bootstrap/src/core/builder.rs @@ -2221,13 +2221,8 @@ impl<'a> Builder<'a> { out } - /// Return paths of all submodules managed by git. - /// If the current checkout is not managed by git, returns an empty slice. + /// Return paths of all submodules. pub fn get_all_submodules(&self) -> &[String] { - if !self.rust_info().is_managed_git_subrepository() { - return &[]; - } - static SUBMODULES_PATHS: OnceLock<Vec<String>> = OnceLock::new(); let init_submodules_paths = |src: &PathBuf| { |
