xPack xPack LLVM clang v20.1.8-1 released
Version 20.1.8-1.1 is a new release; it follows the upstream release.
The xPack LLVM clang is a standalone cross-platform binary distribution of LLVM clang.
There are separate binaries for Windows (x64), macOS (x64 and arm64) and GNU/Linux (x64 and arm64).
The main targets for the GNU/Linux Arm binaries are the Raspberry Pi class devices (aarch64 only; armv6 and armv7l are no longer supported).
Download
The binary files are available from GitHub Releases.
Prerequisites
- x64 Windows: Windows 7 with the Universal C Runtime (UCRT), Windows 8, Windows 10, Windows 11
- x64 macOS: 11.0 or later
- arm64 macOS: 11.0 or later
- x64 GNU/Linux: any system with GLIBC 2.28 or higher (like Ubuntu 20 or later, Debian 10 or later, RedHat 8 or later, Fedora 29 or later, etc)
- arm64 GNU/Linux: any system with GLIBC 2.28 or higher (like Raspberry Pi OS, Ubuntu 20 or later, Debian 10 or later, RedHat 8 or later, Fedora 29 or later, etc)
Install
The easiest way to install this specific version, is by using xpm:
xpm install @xpack-dev-tools/clang@20.1.8-1.1 -verbose
Comprehensive instructions for installing xPack xPack LLVM clang on different platforms can be found in the Install Guide.
Compliance
The xPack LLVM clang is based on the official LLVM clang sources.
The current version is based on:
- LLVM clang version 20.1.8, from 9 Jul 2025
- binutils 2.45
- mingw-w64 13.0.0
For x64 Linux and Windows, multilib (32/64-bit) libraries are provided.
Changes
Compared to the upstream, there are no major functional changes.
Since 15.0.7-4, there is a small patch in Driver.cpp that fixes the
function that computes
InstalledDir
when clang is invoked via a link from a different folder.
Bug fixes
- none
Enhancements
- none
Known problems
Please see the separate tests results page.
On GNU/Linux, LTO (Link Time Optimization) is supported only with
-fuse-ld=lld
.
Starting with 2.44, binutils deprecated ld.gold
, and it is no longer
provided.
Documentation
The original documentation is available from the project web site:
Build
The binaries for all supported platforms (Windows, macOS and GNU/Linux) were built using the xPack Build Box (XBB), a set of build environments based on slightly older distributions, that should be compatible with most recent systems.
For the prerequisites and more details on the build procedure, please see the Maintainer Info page.
CI tests
Before publishing, a set of simple tests were performed on an exhaustive set of platforms. The results are available from:
Tests
The binaries were tested on a variety of platforms, but mainly to check the integrity of the build, not the compiler functionality.
Checksums
The SHA-256 hashes for the files are:
e36292621cb5d03c96ca99f5e41638e8fce9140d9865b4308e7b7f5fda545968
xpack-clang-20.1.8-1-darwin-arm64.tar.gz
2715d6513b13fad66243044e66f0a45cdf37b409ad92aa35b9a744b5027273a9
xpack-clang-20.1.8-1-darwin-x64.tar.gz
ae9c70f8e9a785dc7608565fdcc80bed9f87ea2c407c461e32e55efc40b21404
xpack-clang-20.1.8-1-linux-arm64.tar.gz
8d8b40ec9dc7dfd979f9908d61bccb376e48796b6180742a036ad0d7329ac96c
xpack-clang-20.1.8-1-linux-x64.tar.gz
b6cf9bf51c5a349b3af6888b994128bd1dd0dcbe5ade085ec8b4b458ea2a2da5
xpack-clang-20.1.8-1-win32-x64.zip
Folders hierarchy
After install, the package creates a hierarchy of folders like the following (only the first two depth levels are shown):
- Windows
- macOS
- GNU/Linux
C:> tree /f %USERPROFILE%\AppData\Roaming\xPacks\@xpack-dev-tools\clang\20.1.8-1.1\.content
Folder PATH listing
Volume serial number is B02D-925C
├── README.md
├── bin
│ ├── analyze-build
│ ├── clang++.exe -> clang-target-wrapper.exe
│ ├── clang-20.exe
│ ├── clang-check.exe
│ ├── clang-cl.exe -> clang-target-wrapper.exe
│ ├── clang-cpp.exe -> clang-target-wrapper.exe
│ ├── clang-doc.exe
│ ├── clang-format.exe
│ ├── clang-include-cleaner.exe
│ ├── clang-installapi.exe
│ ├── clang-linker-wrapper.exe
│ ├── clang-nvlink-wrapper.exe
│ ├── clang-refactor.exe
│ ├── clang-repl.exe
│ ├── clang-scan-deps.exe
│ ├── clang-sycl-linker.exe
│ ├── clang-target-wrapper.exe
│ ├── clang-tidy.exe
│ ├── clang.exe -> clang-target-wrapper.exe
│ ├── clangd.exe
│ ├── diagtool.exe
│ ├── gendef.exe
│ ├── git-clang-format
│ ├── git-clang-format.bat
│ ├── hmaptool
│ ├── ld.lld.exe -> lld.exe
│ ├── libLTO.dll
│ ├── libRemarks.dll
│ ├── libc++.dll
│ ├── liblldb.dll
│ ├── libunwind.dll
│ ├── lld.exe
│ ├── lldb-argdumper.exe
│ ├── lldb-dap.exe
│ ├── lldb-instr.exe
│ ├── lldb-server.exe
│ ├── lldb.exe
│ ├── llvm-addr2line.exe -> llvm-symbolizer.exe
│ ├── llvm-ar.exe
│ ├── llvm-cov.exe
│ ├── llvm-cxxfilt.exe
│ ├── llvm-dlltool.exe -> llvm-ar.exe
│ ├── llvm-nm.exe
│ ├── llvm-objcopy.exe
│ ├── llvm-objdump.exe
│ ├── llvm-profdata.exe
│ ├── llvm-ranlib.exe -> llvm-ar.exe
│ ├── llvm-rc.exe
│ ├── llvm-readelf.exe -> llvm-readobj.exe
│ ├── llvm-readobj.exe
│ ├── llvm-size.exe
│ ├── llvm-strings.exe
│ ├── llvm-strip.exe -> llvm-objcopy.exe
│ ├── llvm-symbolizer.exe
│ ├── llvm-windres.exe -> llvm-rc.exe
│ ├── run-clang-tidy
│ ├── scan-build-py
│ └── widl.exe
├── distro-info
│ └── licenses
├── i686-w64-mingw32
│ ├── bin
│ ├── include
│ ├── lib
│ └── share
├── include
├── lib
│ ├── clang
│ ├── cmake
│ ├── libLTO.dll.a
│ ├── libRemarks.dll.a
│ ├── libear
│ └── libscanbuild
├── libexec
│ ├── analyze-c++
│ ├── analyze-cc
│ ├── c++-analyzer
│ ├── c++-analyzer.bat
│ ├── ccc-analyzer
│ ├── ccc-analyzer.bat
│ ├── intercept-c++
│ └── intercept-cc
├── share
│ ├── clang
│ ├── clang-doc
│ ├── opt-viewer
│ ├── scan-build
│ └── scan-view
└── x86_64-w64-mingw32
├── bin
├── include
├── lib
└── share
26 directories, 69 files
$ tree -L 2 ~/Library/xPacks/@xpack-dev-tools/clang/20.1.8-1.1/.content/
/Users/ilg/Library/xPacks/@xpack-dev-tools/clang/20.1.8-1.1/.content/
├── bin
│ ├── analyze-build
│ ├── clang -> clang-20
│ ├── clang-20
│ ├── clang-check
│ ├── clang-cl -> clang
│ ├── clang-cpp -> clang
│ ├── clang-doc
│ ├── clang-format
│ ├── clang-include-cleaner
│ ├── clang-installapi
│ ├── clang-linker-wrapper
│ ├── clang-nvlink-wrapper
│ ├── clang-refactor
│ ├── clang-repl
│ ├── clang-scan-deps
│ ├── clang-sycl-linker
│ ├── clang-tblgen
│ ├── clang-tidy
│ ├── clang++ -> clang
│ ├── clangd
│ ├── darwin-debug
│ ├── diagtool
│ ├── git-clang-format
│ ├── hmaptool
│ ├── ld.lld -> lld
│ ├── ld64.lld -> lld
│ ├── llc
│ ├── lld
│ ├── lld-link -> lld
│ ├── lldb
│ ├── lldb-argdumper
│ ├── lldb-dap
│ ├── lldb-instr
│ ├── lldb-server
│ ├── lli
│ ├── llvm-addr2line -> llvm-symbolizer
│ ├── llvm-ar
│ ├── llvm-as
│ ├── llvm-bitcode-strip -> llvm-objcopy
│ ├── llvm-cgdata
│ ├── llvm-config
│ ├── llvm-cov
│ ├── llvm-ctxprof-util
│ ├── llvm-cxxdump
│ ├── llvm-cxxfilt
│ ├── llvm-cxxmap
│ ├── llvm-debuginfo-analyzer
│ ├── llvm-debuginfod
│ ├── llvm-debuginfod-find
│ ├── llvm-diff
│ ├── llvm-dis
│ ├── llvm-dlltool -> llvm-ar
│ ├── llvm-dwarfutil
│ ├── llvm-lib -> llvm-ar
│ ├── llvm-libtool-darwin
│ ├── llvm-nm
│ ├── llvm-objcopy
│ ├── llvm-objdump
│ ├── llvm-otool -> llvm-objdump
│ ├── llvm-profdata
│ ├── llvm-ranlib -> llvm-ar
│ ├── llvm-rc
│ ├── llvm-readelf -> llvm-readobj
│ ├── llvm-readobj
│ ├── llvm-readtapi
│ ├── llvm-remarkutil
│ ├── llvm-sim
│ ├── llvm-size
│ ├── llvm-strings
│ ├── llvm-strip -> llvm-objcopy
│ ├── llvm-symbolizer
│ ├── llvm-tblgen
│ ├── llvm-tli-checker
│ ├── llvm-windres -> llvm-rc
│ ├── reduce-chunk-list
│ ├── run-clang-tidy
│ ├── scan-build-py
│ ├── set-xcode-analyzer
│ ├── split-file
│ └── wasm-ld -> lld
├── distro-info
│ └── licenses
├── include
│ ├── __libunwind_config.h
│ ├── c++
│ ├── libunwind.h
│ ├── libunwind.modulemap
│ ├── mach-o
│ ├── unwind_arm_ehabi.h
│ ├── unwind_itanium.h
│ └── unwind.h
├── lib
│ ├── clang
│ ├── cmake
│ ├── libc++.1.0.dylib
│ ├── libc++.1.dylib -> libc++.1.0.dylib
│ ├── libc++.a
│ ├── libc++.dylib -> libc++.1.dylib
│ ├── libc++.modules.json
│ ├── libc++abi.1.0.dylib
│ ├── libc++abi.1.dylib -> libc++abi.1.0.dylib
│ ├── libc++abi.a
│ ├── libc++abi.dylib -> libc++abi.1.dylib
│ ├── libc++experimental.a
│ ├── libclang-cpp.dylib
│ ├── libclang.dylib
│ ├── libear
│ ├── liblldb.20.1.8.dylib
│ ├── liblldb.dylib -> liblldb.20.1.8.dylib
│ ├── libLLVM-20.dylib -> libLLVM.dylib
│ ├── libLLVM-C.dylib
│ ├── libLLVM.dylib
│ ├── libLTO.dylib
│ ├── libPolly.a
│ ├── libPollyISL.a
│ ├── libRemarks.dylib
│ ├── libscanbuild
│ ├── libunwind.1.0.dylib
│ ├── libunwind.1.dylib -> libunwind.1.0.dylib
│ ├── libunwind.a
│ ├── libunwind.dylib -> libunwind.1.dylib
│ └── LLVMPolly.so
├── libexec
│ ├── analyze-c++
│ ├── analyze-cc
│ ├── c++-analyzer
│ ├── ccc-analyzer
│ ├── intercept-c++
│ ├── intercept-cc
│ ├── libc++.1.0.dylib
│ ├── libc++abi.1.0.dylib
│ ├── libedit.0.dylib
│ ├── libffi.8.dylib
│ ├── libformw.6.dylib
│ ├── libiconv.2.dylib
│ ├── libicudata.77.1.dylib
│ ├── libicudata.77.dylib -> libicudata.77.1.dylib
│ ├── libicuuc.77.1.dylib
│ ├── libicuuc.77.dylib -> libicuuc.77.1.dylib
│ ├── liblzma.5.dylib
│ ├── libncursesw.6.dylib
│ ├── libpanelw.6.dylib
│ ├── libunwind.1.0.dylib
│ ├── libxml2.16.dylib
│ ├── libz.1.3.1.dylib
│ └── libz.1.dylib -> libz.1.3.1.dylib
├── README.md
└── share
├── clang
├── clang-doc
├── libc++
├── opt-viewer
├── scan-build
└── scan-view
20 directories, 136 files
$ tree -L 2 ~/.local/xPacks/@xpack-dev-tools/clang/20.1.8-1.1/.content/
/home/ilg/.local/xPacks/@xpack-dev-tools/clang/20.1.8-1.1/.content/
├── README.md
├── bin
│ ├── analyze-build
│ ├── clang -> clang-20
│ ├── clang++ -> clang
│ ├── clang-20
│ ├── clang-check
│ ├── clang-cl -> clang
│ ├── clang-cpp -> clang
│ ├── clang-doc
│ ├── clang-format
│ ├── clang-include-cleaner
│ ├── clang-installapi
│ ├── clang-linker-wrapper
│ ├── clang-nvlink-wrapper
│ ├── clang-refactor
│ ├── clang-repl
│ ├── clang-scan-deps
│ ├── clang-sycl-linker
│ ├── clang-tblgen
│ ├── clang-tidy
│ ├── clangd
│ ├── diagtool
│ ├── git-clang-format
│ ├── hmaptool
│ ├── ld.lld -> lld
│ ├── ld64.lld -> lld
│ ├── llc
│ ├── lld
│ ├── lld-link -> lld
│ ├── lldb
│ ├── lldb-argdumper
│ ├── lldb-dap
│ ├── lldb-instr
│ ├── lldb-server
│ ├── lli
│ ├── llvm-addr2line -> llvm-symbolizer
│ ├── llvm-ar
│ ├── llvm-as
│ ├── llvm-bitcode-strip -> llvm-objcopy
│ ├── llvm-cgdata
│ ├── llvm-config
│ ├── llvm-cov
│ ├── llvm-ctxprof-util
│ ├── llvm-cxxdump
│ ├── llvm-cxxfilt
│ ├── llvm-cxxmap
│ ├── llvm-debuginfo-analyzer
│ ├── llvm-debuginfod
│ ├── llvm-debuginfod-find
│ ├── llvm-diff
│ ├── llvm-dis
│ ├── llvm-dlltool -> llvm-ar
│ ├── llvm-dwarfutil
│ ├── llvm-lib -> llvm-ar
│ ├── llvm-libtool-darwin
│ ├── llvm-nm
│ ├── llvm-objcopy
│ ├── llvm-objdump
│ ├── llvm-otool -> llvm-objdump
│ ├── llvm-profdata
│ ├── llvm-ranlib -> llvm-ar
│ ├── llvm-rc
│ ├── llvm-readelf -> llvm-readobj
│ ├── llvm-readobj
│ ├── llvm-readtapi
│ ├── llvm-remarkutil
│ ├── llvm-sim
│ ├── llvm-size
│ ├── llvm-strings
│ ├── llvm-strip -> llvm-objcopy
│ ├── llvm-symbolizer
│ ├── llvm-tblgen
│ ├── llvm-tli-checker
│ ├── llvm-windres -> llvm-rc
│ ├── reduce-chunk-list
│ ├── run-clang-tidy
│ ├── scan-build-py
│ ├── split-file
│ └── wasm-ld -> lld
├── distro-info
│ └── licenses
├── include
│ ├── __libunwind_config.h
│ ├── c++
│ ├── i386-unknown-linux-gnu
│ ├── libunwind.h
│ ├── libunwind.modulemap
│ ├── mach-o
│ ├── unwind.h
│ ├── unwind_arm_ehabi.h
│ ├── unwind_itanium.h
│ └── x86_64-unknown-linux-gnu
├── lib
│ ├── LLVMPolly.so
│ ├── clang
│ ├── cmake
│ ├── i386-unknown-linux-gnu
│ ├── libLLVM-20.so -> libLLVM.so.20.1
│ ├── libLLVM.so -> libLLVM.so.20.1
│ ├── libLLVM.so.20.1
│ ├── libLTO.so -> libLTO.so.20.1
│ ├── libLTO.so.20.1
│ ├── libPolly.a
│ ├── libPollyISL.a
│ ├── libRemarks.so -> libRemarks.so.20.1
│ ├── libRemarks.so.20.1
│ ├── libclang-cpp.so -> libclang-cpp.so.20.1
│ ├── libclang-cpp.so.20.1
│ ├── libclang.so -> libclang.so.20.1
│ ├── libclang.so.20.1 -> libclang.so.20.1.8
│ ├── libclang.so.20.1.8
│ ├── libear
│ ├── liblldb.so -> liblldb.so.20.1
│ ├── liblldb.so.20.1 -> liblldb.so.20.1.8
│ ├── liblldb.so.20.1.8
│ ├── liblldbIntelFeatures.so -> liblldbIntelFeatures.so.20.1
│ ├── liblldbIntelFeatures.so.20.1
│ ├── libscanbuild
│ └── x86_64-unknown-linux-gnu
├── libexec
│ ├── analyze-c++
│ ├── analyze-cc
│ ├── c++-analyzer
│ ├── ccc-analyzer
│ ├── intercept-c++
│ ├── intercept-cc
│ ├── libLLVM.so.20.1
│ ├── libatomic.so.1 -> libatomic.so.1.2.0
│ ├── libatomic.so.1.2.0
│ ├── libclang-cpp.so.20.1
│ ├── libedit.so.0 -> libedit.so.0.0.75
│ ├── libedit.so.0.0.75
│ ├── libffi.so.8 -> libffi.so.8.2.0
│ ├── libffi.so.8.2.0
│ ├── libformw.so.6 -> libformw.so.6.5
│ ├── libformw.so.6.5
│ ├── libgcc_s.so.1
│ ├── libiconv.so.2 -> libiconv.so.2.7.0
│ ├── libiconv.so.2.7.0
│ ├── libicudata.so.77 -> libicudata.so.77.1
│ ├── libicudata.so.77.1
│ ├── libicuuc.so.77 -> libicuuc.so.77.1
│ ├── libicuuc.so.77.1
│ ├── liblldb.so.20.1 -> liblldb.so.20.1.8
│ ├── liblldb.so.20.1.8
│ ├── liblzma.so.5 -> liblzma.so.5.8.1
│ ├── liblzma.so.5.8.1
│ ├── libncursesw.so.6 -> libncursesw.so.6.5
│ ├── libncursesw.so.6.5
│ ├── libpanelw.so.6 -> libpanelw.so.6.5
│ ├── libpanelw.so.6.5
│ ├── libstdc++.so.6 -> libstdc++.so.6.0.33
│ ├── libstdc++.so.6.0.33
│ ├── libxml2.so.16 -> libxml2.so.16.1.0
│ ├── libxml2.so.16.1.0
│ ├── libz.so.1 -> libz.so.1.3.1
│ └── libz.so.1.3.1
└── share
├── clang
├── clang-doc
├── libc++
├── opt-viewer
├── scan-build
└── scan-view
23 directories, 142 files
Deprecation notices
GNU/Linux minimum requirements
The minimum requirement is GLIBC 2.28, available starting with Ubuntu 20, Debian 10 and RedHat 8. Support for RedHat 7 was dropped in 2022. Support for Ubuntu 18 was dropped in 2025.
32-bit support
Support for 32-bit x64 GNU/Linux and x64 Windows was dropped in 2022 and for 32-bit Arm GNU/Linux in 2025.
Pre-deprecation notice for x64 macOS
Apple has discontinued support for the x64 (Intel) architecture. GitHub will no longer support this architecture on macOS after the macOS 15 runner image is retired in November 2027; building and testing x64 macOS binaries will become more difficult, requiring a self-hosted runner, and cannot be guaranteed in the long term.
You should begin migrating your projects to arm64-based (Apple Silicon) binaries to prepare for this possible deprecation.
Analytics
- GitHub xpack-dev-tools/clang-xpack
- this release
- all xPack releases
- individual file counters (grouped by release)
- this release
- npmjs.com @xpack-dev-tools/clang
Credit to Shields IO for the badges and to Somsubhra/github-release-stats for the individual file counters.