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: 11 months 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 (11 months ago)
- Default Branch: main
- Last Pushed: 2025-05-05T04:02:01.000Z (11 months ago)
- Last Synced: 2025-05-05T04:24:18.047Z (11 months ago)
- Topics: clang, cross-compiler, cross-toolchain, glibc, llvm, multi-architecture, musl-libc
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- 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.289 | 20.1.4 | 2.41 |
| aarch64-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| arm-unknown-linux-gnueabi | 5.4.289 | 20.1.4 | 2.41 |
| arm-unknown-linux-gnueabihf | 5.4.289 | 20.1.4 | 2.41 |
| arm-unknown-linux-musleabi | 5.4.289 | 20.1.4 | 1.2.5 |
| arm-unknown-linux-musleabihf | 5.4.289 | 20.1.4 | 1.2.5 |
| armv7-unknown-linux-gnueabi | 5.4.289 | 20.1.4 | 2.41 |
| armv7-unknown-linux-gnueabihf | 5.4.289 | 20.1.4 | 2.41 |
| armv7-unknown-linux-musleabi | 5.4.289 | 20.1.4 | 1.2.5 |
| armv7-unknown-linux-musleabihf | 5.4.289 | 20.1.4 | 1.2.5 |
| i586-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| i586-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| i686-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| i686-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| loongarch64-unknown-linux-gnu | 5.19.16 | 20.1.4 | 2.41 |
| loongarch64-unknown-linux-musl | 5.19.16 | 20.1.4 | 1.2.5 |
| mips64el-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| mips64el-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| mips64-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| mips64-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| mipsel-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| mipsel-unknown-linux-gnusf | 5.4.289 | 20.1.4 | 2.41 |
| mipsel-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| mipsel-unknown-linux-muslsf | 5.4.289 | 20.1.4 | 1.2.5 |
| mips-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| mips-unknown-linux-gnusf | 5.4.289 | 20.1.4 | 2.41 |
| mips-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| mips-unknown-linux-muslsf | 5.4.289 | 20.1.4 | 1.2.5 |
| powerpc64-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| powerpc64-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| powerpc-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| powerpc-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| riscv32-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| riscv32-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| riscv64-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| riscv64-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| s390x-ibm-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| s390x-ibm-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
| x86_64-unknown-linux-gnu | 5.4.289 | 20.1.4 | 2.41 |
| x86_64-unknown-linux-musl | 5.4.289 | 20.1.4 | 1.2.5 |
## 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)