@@ -124,7 +124,6 @@ def __init__(self, *args, **kwargs):
124124 self .llvm_obj_dir_stage1 = None
125125 self .llvm_obj_dir_stage2 = None
126126 self .llvm_obj_dir_stage3 = None
127- self .make_parallel_opts = ""
128127 self .runtime_lib_path = "lib"
129128
130129 # Bypass the .mod file check for GCCcore installs
@@ -404,9 +403,6 @@ def configure_step(self):
404403
405404 self .cfg .update ('configopts' , '-DLLVM_TARGETS_TO_BUILD="%s"' % ';' .join (build_targets ))
406405
407- if self .cfg ['parallel' ]:
408- self .make_parallel_opts = "-j %s" % self .cfg ['parallel' ]
409-
410406 # If hwloc is included as a dep, use it in OpenMP runtime for affinity
411407 hwloc_root = get_software_root ('hwloc' )
412408 if hwloc_root :
@@ -554,7 +550,7 @@ def build_with_prev_stage(self, prev_obj, next_obj):
554550 run_shell_cmd ("cmake %s %s" % (' ' .join (options ), self .llvm_src_dir ))
555551
556552 self .log .info ("Building" )
557- run_shell_cmd ("make %s VERBOSE=1" % self . make_parallel_opts )
553+ run_shell_cmd (f "make { self . parallel_flag } VERBOSE=1" )
558554
559555 # restore $PATH
560556 setvar ('PATH' , orig_path )
@@ -581,7 +577,7 @@ def test_step(self):
581577 change_dir (self .llvm_obj_dir_stage3 )
582578 else :
583579 change_dir (self .llvm_obj_dir_stage1 )
584- run_shell_cmd ("make %s check-all" % self . make_parallel_opts )
580+ run_shell_cmd (f "make { self . parallel_flag } check-all" )
585581
586582 def install_step (self ):
587583 """Install stage 3 binaries."""
0 commit comments