<div dir="ltr">Ping for any thoughts on this proposal...</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 26, 2018 at 3:59 PM Pirama Arumuga Nainar <<a href="mailto:pirama@google.com">pirama@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">libclang.so exports only the symbols needed by the C API.  This is in contrast to libLLVM.so that exports all symbols from the LLVM static libraries.  Would it be useful to provide a libclang shared library that exports all symbols for use by tools that use Clang's (admittedly non-backwards-compatible) C++ API?<div><br></div><div>We can either:</div><div>1. Add a new shared library (libclang_full.so?) that is built based on a CMake option.</div><div>2. Export all symbols from the current libclang.so.  We'd have to also include a few additional libraries such as libClangAnalysis.  Tools using the C API are still restricted to the stable interface if they use the clang-c headers.</div><div><br></div><div>Motivation:</div><div>There are a few Clang-based tools used by Android's build system (1, 2) that use the C++ API.  They are built using Android build rules but need to link against Android's Clang toolchain that's built with CMake.  We don't want to include the libclang static libraries with the toolchain for space considerations, and also to avoid exposing Clang's build internals (internal library dependences and changes to them) to downstream tools.</div><div><br></div><div>Do other Clang/LLVM toolchain maintainers face similar issues and have solutions that are applicable here?</div><div><br></div><div>[1] <a href="https://android.googlesource.com/platform/development/+/master/vndk/tools/header-checker/" target="_blank">https://android.googlesource.com/platform/development/+/master/vndk/tools/header-checker/</a></div><div>[2] <a href="https://android.googlesource.com/platform/development/+/master/vndk/tools/vtable-dumper/" target="_blank">https://android.googlesource.com/platform/development/+/master/vndk/tools/vtable-dumper/</a></div></div>
</blockquote></div>