mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-23 05:15:30 +00:00
Merge pull request #196 from jix/parallel_jobserver
Run tasks in parallel and integrate with the make jobserver
This commit is contained in:
commit
bd88454d7d
6 changed files with 445 additions and 46 deletions
|
@ -59,7 +59,7 @@ if __name__ == "__main__":
|
|||
exit(noskip)
|
||||
|
||||
print(command, flush=True)
|
||||
exit(subprocess.call(command, shell=True))
|
||||
exit(subprocess.call(command, shell=True, close_fds=False))
|
||||
|
||||
found_tools = []
|
||||
check_tools = set()
|
||||
|
|
|
@ -82,7 +82,7 @@ with rules_file.open("w") as rules:
|
|||
command = f"cd {sby_dir_unix} && python3 $(SBY_MAIN) -f {sby_file.name} {task}"
|
||||
|
||||
print(
|
||||
f"\t@python3 make/required_tools.py run {target} {shlex.quote(command)} {shlex.join(required_tools)}",
|
||||
f"\t+@python3 make/required_tools.py run {target} {shlex.quote(command)} {shlex.join(required_tools)}",
|
||||
file=rules,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue