Cling Build Instructions
Binaries cling
You can find our nightly binary snapshots here
Building from source
Build script
You can download and run this build script.
Manual build
Alternatively, you can build manually. Start by checking out llvm, clang and cling:
git clone http://root.cern/git/llvm.git src
cd src
git checkout cling-patches
cd tools
git clone http://root.cern/git/cling.git
git clone http://root.cern/git/clang.git
cd clang
git checkout cling-patches
cd ../..
Then use CMake to configure & build cling:
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=[Install Path] -DCMAKE_BUILD_TYPE=[Build configuration, e.g. Release or Debug] ..\src
cmake --build .
cmake --build . --target install
cling-patches?
Cling needs a couple of patches on top of clang (but can work with an original build of llvm). These are the commits that above build instructions correspond to - which is mostly interesting to package maintainers:
cling release | upstream llvm and clang | cling-patches on clang |
---|---|---|
0.5 | 5.0 release series | 287240.. 27d2d5 (aka cling-patches-rrelease_50) |