niminst: use threaded compression when supported (#14455)

This commit is contained in:
alaviss
2020-05-26 12:05:51 +00:00
committed by GitHub
parent 38cb277653
commit b749d58ea1

View File

@@ -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)