speed up build

This commit is contained in:
Kovid Goyal 2014-04-11 18:57:16 +05:30
parent efbd02bb2e
commit 26136293b7

View File

@ -598,7 +598,7 @@ class Build(Command):
if iswindows:
qmc += ['-spec', 'win32-msvc2008']
self.check_call(qmc + [ext.name+'.pro'])
self.check_call([make, '-f', 'Makefile'])
self.check_call([make, '-f', 'Makefile']+([] if iswindows else ['-j%d'%(cpu_count() or 1)]))
objects = glob.glob(obj_pat)
return list(map(self.a, objects))