diff --git a/easybuild/easyblocks/l/llvm.py b/easybuild/easyblocks/l/llvm.py index 1bb4e66119..08109c50f8 100644 --- a/easybuild/easyblocks/l/llvm.py +++ b/easybuild/easyblocks/l/llvm.py @@ -31,6 +31,7 @@ @author: Simon Branford (University of Birmingham) @author: Kenneth Hoste (Ghent University) @author: Davide Grassano (CECAM HQ - Lausanne) +@author: Prateek Chawla (Juelich Supercomputing Centre) """ import contextlib import glob @@ -224,6 +225,7 @@ def extra_options(): 'enable_rtti': [True, "Enable RTTI", CUSTOM], 'full_llvm': [False, "Build LLVM without any dependency", CUSTOM], 'minimal': [False, "Build LLVM only", CUSTOM], + 'max_link_jobs': [2, "Maximum number of link jobs, defaults to 2", CUSTOM], 'python_bindings': [False, "Install python bindings", CUSTOM], 'skip_all_tests': [False, "Skip running of tests", CUSTOM], 'skip_sanitizer_tests': [True, "Do not run the sanitizer tests", CUSTOM], @@ -315,6 +317,8 @@ def __init__(self, *args, **kwargs): self.full_llvm = self.cfg['full_llvm'] + self.general_opts.update({"LLVM_PARALLEL_LINK_JOBS": self.cfg['max_link_jobs']}) + if self.cfg['minimal']: conflicts = [_ for _ in self.minimal_conflicts if self.cfg[_]] if conflicts: