From b749d58ea1d77aab0ab758a17140ebc57e32f8c8 Mon Sep 17 00:00:00 2001 From: alaviss Date: Tue, 26 May 2020 12:05:51 +0000 Subject: niminst: use threaded compression when supported (#14455) --- tools/niminst/niminst.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/niminst/niminst.nim b/tools/niminst/niminst.nim index 4746f328a..e170bc5d7 100644 --- a/tools/niminst/niminst.nim +++ b/tools/niminst/niminst.nim @@ -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) -- cgit 1.4.1-2-gfad0