We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4632f27 + 7e85480 commit 7ab17f2Copy full SHA for 7ab17f2
1 file changed
setup.py
@@ -51,8 +51,11 @@ def build_extension(self, ext):
51
if sys.maxsize > 2**32:
52
cmake_args += ['-A', 'x64']
53
# build_args += ['--', '/m']
54
- else:
55
- build_args += ['--', '-j2']
+ else:
+ if "MAX_JOBS" in os.environ:
56
+ build_args += ['--', f"-j{os.environ['MAX_JOBS']}"]
57
58
+ build_args += ['--', '-j8']
59
60
61
tmp = os.environ.get("AR", "")
0 commit comments