]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/lib.rs
Auto merge of #86015 - jyn514:revert-revert, r=Mark-Simulacrum
[rust.git] / src / bootstrap / lib.rs
index 347236c655a02d90a3af1740b308d4d6fc226453..8e8c27b0d0dc9952311449d85d179ac6685768ed 100644 (file)
@@ -483,6 +483,12 @@ pub fn build(&mut self) {
             job::setup(self);
         }
 
+        // If the LLVM submodule has been initialized already, sync it unconditionally. This avoids
+        // contributors checking in a submodule change by accident.
+        if self.in_tree_llvm_info.is_git() {
+            native::update_llvm_submodule(self);
+        }
+
         if let Subcommand::Format { check, paths } = &self.config.cmd {
             return format::format(self, *check, &paths);
         }