Skip to content

Commit

Permalink
[release] Use threaded compression with xz
Browse files Browse the repository at this point in the history
Use xz -T0 to use your threads

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D131470
  • Loading branch information
tru committed Aug 10, 2022
1 parent 0e08061 commit 70165c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/utils/release/export.sh
Expand Up @@ -112,7 +112,7 @@ export_sources() {
echo "$rc" > $target_dir/llvm-rc-$yyyymmdd.txt
echo "$git_rev" > $target_dir/llvm-git-revision-$yyyymmdd.txt

git archive --prefix=llvm-project-$release$rc.src/ $tree_id . | xz >$target_dir/$(template_file llvm-project)
git archive --prefix=llvm-project-$release$rc.src/ $tree_id . | xz -T0 >$target_dir/$(template_file llvm-project)
popd

if [ -z "$snapshot" ]; then
Expand All @@ -131,7 +131,7 @@ export_sources() {
for proj in $projects; do
echo "Creating tarball for $proj ..."
pushd $llvm_src_dir/$proj
git archive --prefix=$proj-$release$rc.src/ $tree_id . | xz >$target_dir/$(template_file $proj)
git archive --prefix=$proj-$release$rc.src/ $tree_id . | xz -T0 >$target_dir/$(template_file $proj)
popd
done
}
Expand Down

0 comments on commit 70165c5

Please sign in to comment.