]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
src-release.sh: Use -T0 for xz compression
authorMark Wielaard <mark@klomp.org>
Thu, 30 May 2024 21:06:41 +0000 (23:06 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 3 Jun 2024 09:35:39 +0000 (11:35 +0200)
Use parallel compression to create the xz archive.

On my machine (using 4 cores) this reduces the time to create
binutils-2.42.50.tar.xz from 1 minute 40 seconds to 56 seconds.

xz has supported -T0 since version 5.2.0 (released 2014-12-21).

src-release.sh

index e454893298da2f12f4ad336633804a833b3bbb4f..f29362aac2073816e451e427697a3c8f2dd6a552 100755 (executable)
@@ -239,7 +239,7 @@ do_xz()
     ver=$2
     echo "==> Xzipping $package-$ver.tar.xz"
     rm -f $package-$ver.tar.xz
-    $XZPROG -k -v -9 $package-$ver.tar
+    $XZPROG -k -v -9 -T0 $package-$ver.tar
 }
 
 # Compress the output with zstd