Skip to content

Commit 266f21c

Browse files
committed
Enable parallel boostrap for CMake
1 parent e6d8912 commit 266f21c

File tree

1 file changed

+4
-2
lines changed
  • utils/swift_build_support/swift_build_support

1 file changed

+4
-2
lines changed

utils/swift_build_support/swift_build_support/cmake.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ def build_cmake(self, source_root, build_root):
267267

268268
cwd = os.getcwd()
269269
os.chdir(cmake_build_dir)
270-
shell.call_without_sleeping([cmake_bootstrap, '--no-qt-gui', '--',
271-
'-DCMAKE_USE_OPENSSL=OFF'], echo=True)
270+
shell.call_without_sleeping([cmake_bootstrap, '--no-qt-gui',
271+
'--parallel=%s' % self.args.build_jobs,
272+
'--', '-DCMAKE_USE_OPENSSL=OFF'],
273+
echo=True)
272274
shell.call_without_sleeping(['make', '-j%s' % self.args.build_jobs],
273275
echo=True)
274276
os.chdir(cwd)

0 commit comments

Comments
 (0)