Cling Build Instructions
Binaries clingPermalink
Our nightly binary snapshots are currently not available.
Community supportPermalink
You can get cling 1.2 from conda-feedstock and there is a user providing an external PPA for debian.
Building from sourcePermalink
Build scriptPermalink
You can download and run this build script.
Manual buildPermalink
Alternatively, you can build manually. Start by checking out llvm, clang and cling:
git clone -b cling-llvm18 https://github.com/root-project/llvm-project.git src
git clone https://github.com/root-project/cling.git
Then use CMake to configure & build cling:
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_TOOLS=Off -DLLVM_EXTERNAL_PROJECTS=cling -DLLVM_EXTERNAL_CLING_SOURCE_DIR=../cling -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD="host;NVPTX" src/llvm
cmake --build .
cmake --build . --target install
See also README on the repository.