]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/lib.rs
Revert "Move llvm submodule updates to rustbuild"
[rust.git] / src / bootstrap / lib.rs
index a351290a4206fec219a7ac1c41e20674646ab1fa..2960dd3df6bf48b81a98cbd0ee8c80e42a6176f2 100644 (file)
@@ -472,22 +472,12 @@ pub fn build_triple(&self) -> &[Interned<String>] {
         slice::from_ref(&self.build.triple)
     }
 
-    /// If the LLVM submodule has been initialized already, sync it unconditionally. This avoids
-    /// contributors checking in a submodule change by accident.
-    pub fn maybe_update_llvm_submodule(&self) {
-        if self.in_tree_llvm_info.is_git() {
-            native::update_llvm_submodule(self);
-        }
-    }
-
     /// Executes the entire build, as configured by the flags and configuration.
     pub fn build(&mut self) {
         unsafe {
             job::setup(self);
         }
 
-        self.maybe_update_llvm_submodule();
-
         if let Subcommand::Format { check, paths } = &self.config.cmd {
             return format::format(self, *check, &paths);
         }