aboutsummaryrefslogtreecommitdiff
path: root/maintainer-scripts/gcc_release
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-11-08 07:14:38 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2022-11-23 09:53:48 +0000
commit2650b6f9147c0d855c2763610b8a4bff18f5b5e0 (patch)
treef63a2a9c9d1b64952f3a3f067a8df5c9365570c7 /maintainer-scripts/gcc_release
parente1b503d7068cbaf4be938c02eb6686ea5a716fee (diff)
downloadgcc-2650b6f9147c0d855c2763610b8a4bff18f5b5e0.zip
gcc-2650b6f9147c0d855c2763610b8a4bff18f5b5e0.tar.gz
gcc-2650b6f9147c0d855c2763610b8a4bff18f5b5e0.tar.bz2
maintainer-scripts/gcc_release: compress xz in parallel
1. This should speed up decompression for folks, as parallel xz creates a different archive which can be decompressed in parallel. Note that this different method is enabled by default in a new xz release coming shortly anyway (>= 5.3.3_alpha1). I build GCC regularly from the weekly snapshots and so the decompression time adds up. 2. It should speed up compression on the webserver a bit. Note that -T0 won't be the default in the new xz release, only the parallel compression mode (which enables parallel decompression). -T0 detects the number of cores available. So, if a different number of threads is preferred, it's fine to set e.g. -T2, etc. Signed-off-by: Sam James <sam@gentoo.org> * gcc_release (XZ): Add -T0.
Diffstat (limited to 'maintainer-scripts/gcc_release')
-rwxr-xr-xmaintainer-scripts/gcc_release2
1 files changed, 1 insertions, 1 deletions
diff --git a/maintainer-scripts/gcc_release b/maintainer-scripts/gcc_release
index 2456908..962b8ef 100755
--- a/maintainer-scripts/gcc_release
+++ b/maintainer-scripts/gcc_release
@@ -609,7 +609,7 @@ FILE_LIST=""
# Programs we use.
BZIP2="${BZIP2:-bzip2}"
-XZ="${XZ:-xz --best}"
+XZ="${XZ:-xz -T0 --best}"
CVS="${CVS:-cvs -f -Q -z9}"
DIFF="${DIFF:-diff -Nrcpad}"
ENV="${ENV:-env}"