File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -472,21 +472,17 @@ impl Build {
472
472
slice:: from_ref ( & self . build . triple )
473
473
}
474
474
475
- /// If the LLVM submodule has been initialized already, sync it unconditionally. This avoids
476
- /// contributors checking in a submodule change by accident.
477
- pub fn maybe_update_llvm_submodule ( & self ) {
478
- if self . in_tree_llvm_info . is_git ( ) {
479
- native:: update_llvm_submodule ( self ) ;
480
- }
481
- }
482
-
483
475
/// Executes the entire build, as configured by the flags and configuration.
484
476
pub fn build ( & mut self ) {
485
477
unsafe {
486
478
job:: setup ( self ) ;
487
479
}
488
480
489
- self . maybe_update_llvm_submodule ( ) ;
481
+ // If the LLVM submodule has been initialized already, sync it unconditionally. This avoids
482
+ // contributors checking in a submodule change by accident.
483
+ if self . in_tree_llvm_info . is_git ( ) {
484
+ native:: update_llvm_submodule ( self ) ;
485
+ }
490
486
491
487
if let Subcommand :: Format { check, paths } = & self . config . cmd {
492
488
return format:: format ( self , * check, & paths) ;
You can’t perform that action at this time.
0 commit comments