File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1313### Changed
1414- Updated multilib to use LLVM multilib.yaml 1.0 (#250 ).
1515- ` *.cfg ` files for library variant selection removed in favor of multilib
16- - The macOS package is now a .dmg instead of .tar.gz.
16+ - The macOS package is now a ` .dmg ` instead of ` .tar.gz ` .
17+ - Linux packages are now in ` tar.xz ` format instead of ` tar.gz ` .
1718
1819### Removed
1920
Original file line number Diff line number Diff line change @@ -313,6 +313,9 @@ set(CPACK_ARCHIVE_COMPONENT_INSTALL TRUE)
313313set (CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)
314314# When extracting the files put them in an ArmCompiler-.../ directory.
315315set (CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY TRUE )
316+ # Compress package in parallel.
317+ set (CPACK_THREADS 0 CACHE STRING "" )
318+
316319
317320if (CMAKE_OSX_ARCHITECTURES)
318321 # For universal binaries don't include architecture in the package name.
@@ -1248,8 +1251,8 @@ elseif(CMAKE_OSX_ARCHITECTURES)
12481251 set (cpack_generator DragNDrop)
12491252 set (package_filename_extension ".dmg" )
12501253else ()
1251- set (cpack_generator TGZ )
1252- set (package_filename_extension ".tar.gz " )
1254+ set (cpack_generator TXZ )
1255+ set (package_filename_extension ".tar.xz " )
12531256endif ()
12541257# CPACK_PACKAGE_FILE_NAME may refer to the source package so use this variable instead.
12551258set (binary_package_name ${CPACK_PACKAGE_NAME} -${CPACK_PACKAGE_VERSION} -${CPACK_SYSTEM_NAME} )
Original file line number Diff line number Diff line change 1818def main ():
1919 parser = argparse .ArgumentParser (description = __doc__ )
2020 parser .add_argument (
21- "--distribution-tgz " ,
21+ "--distribution-file " ,
2222 required = True ,
2323 help = """Copy from this LLVM Embedded Toolchain for Arm distribution
24- tar.gz file . This is a glob to make things easier on Windows.""" ,
24+ tarfile . This is a glob to make things easier on Windows.""" ,
2525 )
2626 parser .add_argument (
2727 "--build-dir" ,
@@ -33,11 +33,11 @@ def main():
3333 # Find the distribution. This is a glob because scripts may not
3434 # know the version number and we can't rely on the Windows shell to
3535 # do it.
36- for distribution_tgz in glob .glob (args .distribution_tgz ):
36+ for distribution_file in glob .glob (args .distribution_file ):
3737 break
3838 else :
3939 raise RuntimeError (
40- f"Distribution glob '{ args .distribution_tgz } ' not found"
40+ f"Distribution glob '{ args .distribution_file } ' not found"
4141 )
4242
4343 lib_dir = os .path .join (args .build_dir , "llvm" , "lib" )
@@ -52,7 +52,7 @@ def main():
5252 dir = args .build_dir ,
5353 ) as tmp :
5454 # Extract the distribution package.
55- with tarfile .open (distribution_tgz ) as tf :
55+ with tarfile .open (distribution_file ) as tf :
5656 tf .extractall (tmp )
5757
5858 # Find the clang-runtimes directory in the extracted package
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ ninja check-llvm-toolchain
6969
7070### Packaging the toolchain
7171
72- After building, create a zip or tar.gz file as appropriate for the platform:
72+ After building, create a zip or tar.xz file as appropriate for the platform:
7373```
7474ninja package-llvm-toolchain
7575```
You can’t perform that action at this time.
0 commit comments