Skip to content

Commit 4240143

Browse files
Fix cpu_count
1 parent 3f1e437 commit 4240143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def build_generic_cmake_project(self,
138138

139139
cmake_build_args = []
140140
if self.compiler_id != 'msvc':
141-
cmake_build_args.append(f'-j$(nproc)')
141+
cmake_build_args.append(f'-j{os.cpu_count()}')
142142

143143
log(f'Building Debug configuration ...')
144144
self.cmd(f'cmake -G Ninja {self.source_dir} -B {self.debug_build_dir} {" ".join(args_debug)}')

0 commit comments

Comments
 (0)