Skip to content

Commit

Permalink
Rollup merge of rust-lang#76864 - est31:downloaded_llvm_no_clone_sour…
Browse files Browse the repository at this point in the history
…ces, 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.
  • Loading branch information
Dylan-DPC authored Sep 19, 2020
2 parents 18cc1b0 + f05b47c commit 558be8b
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 558be8b

Please sign in to comment.