faster builds

This commit is contained in:
Kovid Goyal 2014-04-11 18:47:30 +05:30
parent d18a999f31
commit 62f72877e9

View File

@ -649,7 +649,7 @@ class Build(Command):
os.chdir(src_dir)
if self.newer(dest, sip['headers'] + sip['sources'] + ext.sources + ext.headers):
self.check_call([QMAKE] + qmc + [proname])
self.check_call([make])
self.check_call([make]+([] if iswindows else ['-j%d'%(cpu_count() or 1)]))
shutil.copy2(os.path.realpath(name), dest)
finally:
os.chdir(cwd)