Skip to content

Commit

Permalink
nproc
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-desroches committed Jul 18, 2024
1 parent 5cd9791 commit ae7409e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def finalize_options(self) -> None:
pass

def run(self) -> None:
subprocess.run(["scons -j$(nproc)"], shell=True).check_returncode()
subprocess.run(["scons -j$(nproc || sysctl -n hw.logicalcpu)"], shell=True).check_returncode()


class CustomBuild(build):
Expand Down

0 comments on commit ae7409e

Please sign in to comment.