Skip to content

Commit 5577102

Browse files
Add multicore compilation
1 parent 54ee381 commit 5577102

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/tools.py

+3
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ def build_generic_cmake_project(self,
113113
cmake_args.append(f'-DCMAKE_C_COMPILER={self.cc_compiler}')
114114
cmake_args.append(f'-DCMAKE_CXX_COMPILER={self.cxx_compiler}')
115115

116+
if self.compiler_id != 'msvc':
117+
cmake_args.append(f'-j$(nproc)')
118+
116119
cmake_args.append(f'-DBUILD_SHARED_LIBS=OFF')
117120
cmake_args.append(f'-DPython_ROOT_DIR={os.path.dirname(sys.executable)}')
118121
cmake_args.append(f'-DPython3_ROOT_DIR={os.path.dirname(sys.executable)}')

0 commit comments

Comments
 (0)