An open API service indexing awesome lists of open source software.

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

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)