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.
This commit is contained in:
parent
285fc7d704
commit
f05b47ccdf
1 changed files with 3 additions and 2 deletions
|
@ -881,8 +881,9 @@ class RustBuild(object):
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue