https://github.com/biojppm/clang-build
cmake project to download and compile a full clang
https://github.com/biojppm/clang-build
Last synced: about 1 month ago
JSON representation
cmake project to download and compile a full clang
- Host: GitHub
- URL: https://github.com/biojppm/clang-build
- Owner: biojppm
- License: mit
- Created: 2019-02-26T21:28:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-07T01:41:51.000Z (over 5 years ago)
- Last Synced: 2025-06-25T19:04:43.467Z (4 months ago)
- Language: CMake
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# clang-build
This is a CMake project to easily download and compile llvm + clang + extra
tools (also with include-what-you-use).## How to use
First, clone this repo and descend to it:
```bash
git clone https://github.com/biojppm/clang-build
cd clang-build # following commands assume we're inside this folder
```The examples below use [cmany](https://github.com/biojppm/cmany).
Compile clang 7.0.1 (the default):
```bash
# using cmany:
cmany b# ... or equivalently using CMake:
mkdir build
cmake -H . -B build -D CMAKE_BUILD_TYPE=Release
cmake --build build```
That's it! llvm and clang 7.0.1 are automatically downloaded and compiled.
If you have a different version in mind, say 6.0.1, use the CMake project
variable `CLANG_VERSION`:```bash
# using cmany:
cmany b -V CLANG_VERSION=6.0.1# ... or equivalently using CMake:
mkdir build
cmake -H . -B build -D CMAKE_BUILD_TYPE=Release -D CLANG_VERSION=7.0.1
cmake --build build
```## License
Permissively licensed with the [MIT license](LICENSE.txt).