mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
faster builds
This commit is contained in:
parent
d18a999f31
commit
62f72877e9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user