mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 12:43:36 +00:00
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.
This commit is contained in:
commit
33aa8be8b5
@ -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…
Reference in New Issue
Block a user