diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2024-03-30 19:58:30 +0100 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-03-31 12:56:05 +0200 |
| commit | 63d6ce03b341ba2c42782099dcfae90e3daa5021 (patch) | |
| tree | e7034bcce2da23c64dd8548d2b0be1484bc41072 | |
| parent | 6f4f39a8d56968a1ea120e6903c0640eb2a13ee9 (diff) | |
| download | rust-63d6ce03b341ba2c42782099dcfae90e3daa5021.tar.gz rust-63d6ce03b341ba2c42782099dcfae90e3daa5021.zip | |
Checkout all submodules when building source tarballs
| -rw-r--r-- | src/bootstrap/src/core/build_steps/dist.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index d9c7032d0db..08d05920dc4 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -995,9 +995,9 @@ impl Step for PlainSourceTarball { if builder.rust_info().is_managed_git_subrepository() || builder.rust_info().is_from_tarball() { - if builder.rust_info().is_managed_git_subrepository() { - // Ensure we have the submodules checked out. - builder.update_submodule(Path::new("src/tools/cargo")); + // Ensure we have all submodules from src and other directories checked out. + for submodule in builder.get_all_submodules() { + builder.update_submodule(Path::new(submodule)); } // Vendor all Cargo dependencies |
