Reducing linking time of cling

hey all,

i am already in love with cling but there is one problem: everytime i did some change to test the effect, i need to compile tools/driver/cling.c (fast) and then build the whole executable (slow).

would it be possible to build cling with shared libs? i guess that would be faster to compile and slower to execute. maybe there is a make-option?

i dont know other ways to speed it up, but i would like to read other ways. :slight_smile:

edit: just got another idea. it should also be faster as a release-version (smaller files), but how to compile it as release instead of Debug+Assert?

best regards,


I assume that you build cling as part of llvm/tools. You can configure llvm as release, see configure --help.

Also please use gold as your linker - that speeds up linking dramatically.

Cheers, Axel.

Hi, thank you very much. Your assumption was correct.

I configured it now this way:

Without “CC=gcc CXX=g++” it gave errors.