Skip to content

Commit

Permalink
sync llvm submodule during config parse
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Aug 18, 2024
1 parent 3d0f3b2 commit c2b65c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bootstrap/src/core/config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,12 @@ impl Config {
set(&mut config.print_step_rusage, print_step_rusage);
config.patch_binaries_for_nix = patch_binaries_for_nix;

// Initialize the llvm submodule if not initialized already.
// This is required to handle download-ci-llvm properly.
//
// If submodules are disabled, this does nothing.
config.update_submodule("src/llvm-project");

config.verbose = cmp::max(config.verbose, flags.verbose as usize);

if let Some(install) = toml.install {
Expand Down

0 comments on commit c2b65c6

Please sign in to comment.