diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index ad67a1d4310fd..7fa650230d0ad 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -2729,6 +2729,10 @@ impl Config { download_ci_llvm: Option, asserts: bool, ) -> bool { + // Initialize the llvm submodule if not initialized already. + // If submodules are disabled, this does nothing. + self.update_submodule("src/llvm-project"); + let if_unchanged = || { // Git is needed to track modifications here, but tarball source is not available. // If not modified here or built through tarball source, we maintain consistency