Skip to content

Commit f05b47c

Browse files
committed
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.
1 parent 285fc7d commit f05b47c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: 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)