https://github.com/cross-tools/clang-cross
Cross-compile toolchain with clang and {gnu, musl} libc
https://github.com/cross-tools/clang-cross
clang cross-compiler cross-toolchain glibc llvm multi-architecture musl-libc
Last synced: 29 days ago
JSON representation
Cross-compile toolchain with clang and {gnu, musl} libc
- Host: GitHub
- URL: https://github.com/cross-tools/clang-cross
- Owner: cross-tools
- License: mit
- Created: 2025-05-05T02:56:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-11-19T05:40:51.000Z (7 months ago)
- Last Synced: 2025-11-19T07:18:02.010Z (7 months ago)
- Topics: clang, cross-compiler, cross-toolchain, glibc, llvm, multi-architecture, musl-libc
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# clang-cross
This is a simple, lightweight project for making cross-compilation toolchain with clang and {gnu, musl} libc.
## Supported targets
| Target | Kernel | Clang | Libc |
|--------------------------------|---------|--------|--------|
| aarch64-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| aarch64-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| arm-unknown-linux-gnueabi | 5.4.296 | 22.1.4 | 2.43 |
| arm-unknown-linux-gnueabihf | 5.4.296 | 22.1.4 | 2.43 |
| arm-unknown-linux-musleabi | 5.4.296 | 22.1.4 | 1.2.6 |
| arm-unknown-linux-musleabihf | 5.4.296 | 22.1.4 | 1.2.6 |
| armv7-unknown-linux-gnueabi | 5.4.296 | 22.1.4 | 2.43 |
| armv7-unknown-linux-gnueabihf | 5.4.296 | 22.1.4 | 2.43 |
| armv7-unknown-linux-musleabi | 5.4.296 | 22.1.4 | 1.2.6 |
| armv7-unknown-linux-musleabihf | 5.4.296 | 22.1.4 | 1.2.6 |
| i586-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| i586-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| i686-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| i686-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| loongarch64-unknown-linux-gnu | 5.19.16 | 22.1.4 | 2.43 |
| loongarch64-unknown-linux-musl | 5.19.16 | 22.1.4 | 1.2.6 |
| mips64el-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| mips64el-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| mips64-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| mips64-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| mipsel-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| mipsel-unknown-linux-gnusf | 5.4.296 | 22.1.4 | 2.43 |
| mipsel-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| mipsel-unknown-linux-muslsf | 5.4.296 | 22.1.4 | 1.2.6 |
| mips-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| mips-unknown-linux-gnusf | 5.4.296 | 22.1.4 | 2.43 |
| mips-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| mips-unknown-linux-muslsf | 5.4.296 | 22.1.4 | 1.2.6 |
| powerpc64le-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| powerpc64le-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| powerpc64-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| powerpc64-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| powerpcle-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| powerpcle-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| powerpc-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| powerpc-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| riscv32-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| riscv32-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| riscv64-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| riscv64-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| s390x-ibm-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| s390x-ibm-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
| x86_64-unknown-linux-gnu | 5.4.296 | 22.1.4 | 2.43 |
| x86_64-unknown-linux-musl | 5.4.296 | 22.1.4 | 1.2.6 |
## How to use
Download the tarball from the [release page](https://github.com/cross-tools/clang-cross/releases) and extract it to `/opt/x-tools`:
```sh
sudo mkdir -p /opt/x-tools
sudo tar -xf ${target}.tar.xz -C /opt/x-tools
```
## How to build
Fork this project and create a new release, or build manually:
```sh
./scripts/make ${target}
```
## License
MIT
## Acknowledgements
We would like to express our gratitude to the following individuals and projects:
- [llvm](https://llvm.org)
- [linux](https://kernel.org)
- [glibc](https://www.gnu.org/software/libc)
- [musl](https://www.musl-libc.org)