Question: Cling binary and lib size

How much of the Release folder needs to be present for Cling to function?
I’m looking at deploying Cling on developer machines, and there is some questions around the 1.3GB size.
Build: 64bit, win10.

Note: MinSizeRel produces a 1.21GB directory.

Thanks,

All you should need is bin/cling include/ and depending on your use case share/cling. bin/cling is about 87MB on Linux, for a release build.

Out of include/ only very few files are needed; let me know if you want to strip that down, too!

Axel.

Thanks Axel.

It appears that the Windows build procedure does not separate the bin directory into subdirectories during the install (or during the build).

All files

bugpoint.exe
c-index-test.exe
clang.exe
clang++.exe
clang-check.exe
clang-cl.exe
clang-cpp.exe
clang-format.exe
clang-import-test.exe
clang-offload-bundler.exe
cling.exe
git-clang-format
libclang.dll
libcling.dll
libclingJupyter.dll
llc.exe
lli.exe
llvm-ar.exe
llvm-as.exe
llvm-bcanalyzer.exe
llvm-cat.exe
llvm-config.exe
llvm-cov.exe
llvm-c-test.exe
llvm-cvtres.exe
llvm-cxxdump.exe
llvm-cxxfilt.exe
llvm-diff.exe
llvm-dis.exe
llvm-dsymutil.exe
llvm-dwarfdump.exe
llvm-dwp.exe
llvm-extract.exe
llvm-lib.exe
llvm-link.exe
llvm-lto.exe
llvm-lto2.exe
llvm-mc.exe
llvm-mcmarkup.exe
llvm-modextract.exe
llvm-nm.exe
llvm-objdump.exe
llvm-opt-report.exe
llvm-pdbdump.exe
llvm-profdata.exe
llvm-ranlib.exe
llvm-readobj.exe
llvm-rtdyld.exe
llvm-size.exe
llvm-split.exe
llvm-stress.exe
llvm-strings.exe
llvm-symbolizer.exe
llvm-tblgen.exe
llvm-xray.exe
LTO.dll
obj2yaml.exe
opt.exe
sancov.exe
sanstats.exe
scan-build
scan-build.bat
scan-view
verify-uselistorder.exe
yaml2obj.exe

If you wouldn’t mind could you list which files are needed?

Cheers,

Actually, stripping down the include directory would be helpful as well. We’ll be looking in to it ourselves eventually, but if you know off hand that knowledge would be appreciated!

You only need bin/cling.exe.

Regarding the includes, you should only need the following files from cling/Interpreter/:

DynamicExprInfo.h
DynamicLookupLifetimeHandler.h
DynamicLookupRuntimeUniverse.h
Exception.h
Interpreter.h
InvocationOptions.h
RuntimePrintValue.h
RuntimeUniverse.h
Value.h
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.