mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-15 07:43:26 +00:00
niminst: use threaded compression when supported (#14455)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user