File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -1001,11 +1001,16 @@ impl Step for PlainSourceTarball {
1001
1001
channel:: write_commit_info_file ( & plain_dst_src, info) ;
1002
1002
}
1003
1003
1004
- // If we're building from git sources, we need to vendor a complete distribution.
1005
- if builder. rust_info ( ) . is_managed_git_subrepository ( ) {
1006
- // Ensure we have the submodules checked out.
1007
- builder. update_submodule ( Path :: new ( "src/tools/cargo" ) ) ;
1008
- builder. update_submodule ( Path :: new ( "src/tools/rust-analyzer" ) ) ;
1004
+ // If we're building from git or tarball sources, we need to vendor
1005
+ // a complete distribution.
1006
+ if builder. rust_info ( ) . is_managed_git_subrepository ( )
1007
+ || builder. rust_info ( ) . is_from_tarball ( )
1008
+ {
1009
+ if builder. rust_info ( ) . is_managed_git_subrepository ( ) {
1010
+ // Ensure we have the submodules checked out.
1011
+ builder. update_submodule ( Path :: new ( "src/tools/cargo" ) ) ;
1012
+ builder. update_submodule ( Path :: new ( "src/tools/rust-analyzer" ) ) ;
1013
+ }
1009
1014
1010
1015
// Vendor all Cargo dependencies
1011
1016
let mut cmd = Command :: new ( & builder. initial_cargo ) ;
You can’t perform that action at this time.
0 commit comments