Hi,
I wanted to try cling for my own rapid prototyping/debuging/testing in c++ when python is not an option, so I built Cling with the provided buildscript*.
The line 61 of it configures the clang/cling build:
cmake -DCMAKE_INSTALL_PREFIX=$INSTDIR -DPYTHON_EXECUTABLE=$python …/src > /dev/null || exit 1
Because no Build type is specified here, cmake/clang defaults to DEBUG, which produces a 1.5 GB clang executable (if one doesn’t run out of memory while compiling, first time I had 8GB for one link in use)
Changing line 61 to
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=$INSTDIR -DPYTHON_EXECUTABLE=$python …/src > /dev/null || exit 1
fixes this.
Greetings
Elbrasch
*found here:
root.cern.ch/cling-build-instructions
raw.github.com/karies/cling-all … r/clone.sh