Skip to content

Commit 63d6ce0

Browse files
committed
Checkout all submodules when building source tarballs
1 parent 6f4f39a commit 63d6ce0

File tree

1 file changed

+3
-3
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+3
-3
lines changed

src/bootstrap/src/core/build_steps/dist.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -995,9 +995,9 @@ impl Step for PlainSourceTarball {
995995
if builder.rust_info().is_managed_git_subrepository()
996996
|| builder.rust_info().is_from_tarball()
997997
{
998-
if builder.rust_info().is_managed_git_subrepository() {
999-
// Ensure we have the submodules checked out.
1000-
builder.update_submodule(Path::new("src/tools/cargo"));
998+
// Ensure we have all submodules from src and other directories checked out.
999+
for submodule in builder.get_all_submodules() {
1000+
builder.update_submodule(Path::new(submodule));
10011001
}
10021002

10031003
// Vendor all Cargo dependencies

0 commit comments

Comments
 (0)