File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/bootstrap/src/core/config Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2738,12 +2738,17 @@ impl Config {
2738
2738
return false ;
2739
2739
}
2740
2740
2741
- self . update_submodule ( "src/llvm-project" ) ;
2741
+ let is_tracked_git_submodule = self . submodules ( )
2742
+ && GitInfo :: new ( false , Path :: new ( "src/llvm-project" ) )
2743
+ . is_managed_git_subrepository ( ) ;
2742
2744
2743
2745
// Check for untracked changes in `src/llvm-project`.
2744
- let has_changes = self
2745
- . last_modified_commit ( & [ "src/llvm-project" ] , "download-ci-llvm" , true )
2746
- . is_none ( ) ;
2746
+ let has_changes = if !is_tracked_git_submodule {
2747
+ false
2748
+ } else {
2749
+ self . update_submodule ( "src/llvm-project" ) ;
2750
+ self . last_modified_commit ( & [ "src/llvm-project" ] , "download-ci-llvm" , true ) . is_none ( )
2751
+ } ;
2747
2752
2748
2753
// Return false if there are untracked changes, otherwise check if CI LLVM is available.
2749
2754
if has_changes { false } else { llvm:: is_ci_llvm_available ( self , asserts) }
You can’t perform that action at this time.
0 commit comments