about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2020-09-18 06:21:06 +0200
committerest31 <MTest31@outlook.com>2020-09-18 06:21:06 +0200
commitf05b47ccdfa63f8b4b9fb47a9aa92381801d3ff1 (patch)
tree31fcd214996c2c50d29f6439a3df07ff1b444a77 /src/bootstrap
parent285fc7d704fcdd7b2a37d475d04d5d955490e000 (diff)
downloadrust-f05b47ccdfa63f8b4b9fb47a9aa92381801d3ff1.tar.gz
rust-f05b47ccdfa63f8b4b9fb47a9aa92381801d3ff1.zip
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.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/bootstrap.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 5f78031e1c7..613f364b753 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -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)