Skip to content

Commit c2b65c6

Browse files
committed
sync llvm submodule during config parse
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 3d0f3b2 commit c2b65c6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bootstrap/src/core/config/config.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,12 @@ impl Config {
15741574
set(&mut config.print_step_rusage, print_step_rusage);
15751575
config.patch_binaries_for_nix = patch_binaries_for_nix;
15761576

1577+
// Initialize the llvm submodule if not initialized already.
1578+
// This is required to handle download-ci-llvm properly.
1579+
//
1580+
// If submodules are disabled, this does nothing.
1581+
config.update_submodule("src/llvm-project");
1582+
15771583
config.verbose = cmp::max(config.verbose, flags.verbose as usize);
15781584

15791585
if let Some(install) = toml.install {

0 commit comments

Comments
 (0)