niminst: use threaded compression when supported (#14455)
This commit is contained in:
parent
38cb277653
commit
b749d58ea1
1 changed files with 4 additions and 2 deletions
|
|
@ -700,8 +700,10 @@ RunProgram="tools\downloader.exe"
|
|||
if execShellCmd("tar cf $1.tar $1" % proj) != 0:
|
||||
echo("External program failed")
|
||||
|
||||
if execShellCmd("xz -9f $1.tar" % proj) != 0:
|
||||
echo("External program failed")
|
||||
if execShellCmd("xz -T0 -9f $1.tar" % proj) != 0:
|
||||
# Maybe the xz version is too old and doesn't support threading
|
||||
if execShellCmd("xz -9f $1.tar" % proj) != 0:
|
||||
echo("External program failed")
|
||||
finally:
|
||||
setCurrentDir(oldDir)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue