Skip to content

Commit

Permalink
Don't download/sync llvm-project submodule if download-ci-llvm is set
Browse files Browse the repository at this point in the history
llvm-project takes > 1GB storage space and a long time to download.
It's better to not download it unless needed.
  • Loading branch information
est31 committed Sep 18, 2020
1 parent 285fc7d commit f05b47c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,8 +881,9 @@ def update_submodules(self):
submodules_names = []
for module in submodules:
if module.endswith("llvm-project"):
if self.get_toml('llvm-config') and self.get_toml('lld') != 'true':
continue
if self.get_toml('llvm-config') or self.get_toml('download-ci-llvm') == 'true':
if self.get_toml('lld') != 'true':
continue
check = self.check_submodule(module, slow_submodules)
filtered_submodules.append((module, check))
submodules_names.append(module)
Expand Down

0 comments on commit f05b47c

Please sign in to comment.