Skip to content

Commit cefbd1d

Browse files
committed
Update to use manage parallel build command
1 parent 0f805de commit cefbd1d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

vcast_exec.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,14 @@ def runExec(self):
383383
else:
384384
output = ""
385385

386-
if self.jobs != "1" and checkVectorCASTVersion(20, True):
386+
387+
if checkVectorCASTVersion(25, False):
388+
useParallelManageCommand = True
389+
else:
390+
useParallelManageCommand = False
387391

392+
393+
if self.jobs != "1" and checkVectorCASTVersion(20, True) and not useParallelManageCommand:
388394
# setup project for parallel execution
389395
self.manageWait.exec_manage_command ("--config VCAST_DEPENDENCY_CACHE_DIR=./vcqik")
390396

@@ -408,7 +414,12 @@ def runExec(self):
408414
parallel_build_execute.parallel_build_execute(callStr)
409415

410416
else:
411-
cmd = "--" + self.build_execute + " " + self.useCBT + self.level_option + self.env_option + output
417+
if useParallelManageCommand:
418+
jstr = "--jobs="+str(self.jobs)
419+
else:
420+
jstr = ""
421+
422+
cmd = "--" + self.build_execute + " " + self.useCBT + self.level_option + self.env_option + " " + jstr + " " + output
412423
build_log = self.manageWait.exec_manage_command (cmd)
413424
open(self.build_log_name,"w").write(build_log)
414425

0 commit comments

Comments
 (0)