Skip to content

Commit 33aa8be

Browse files
committed
Auto merge of #76864 - est31:downloaded_llvm_no_clone_sources, r=Mark-Simulacrum
Don't download/sync llvm-project submodule if download-ci-llvm is set llvm-project takes > 1GB storage space and a long time to download. It's better to not download it unless needed.
2 parents feca2c2 + f05b47c commit 33aa8be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bootstrap/bootstrap.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -881,8 +881,9 @@ def update_submodules(self):
881881
submodules_names = []
882882
for module in submodules:
883883
if module.endswith("llvm-project"):
884-
if self.get_toml('llvm-config') and self.get_toml('lld') != 'true':
885-
continue
884+
if self.get_toml('llvm-config') or self.get_toml('download-ci-llvm') == 'true':
885+
if self.get_toml('lld') != 'true':
886+
continue
886887
check = self.check_submodule(module, slow_submodules)
887888
filtered_submodules.append((module, check))
888889
submodules_names.append(module)

0 commit comments

Comments
 (0)