EDIT:
Issue solved. By linking with libclang-cpp.so
.
Hi all,
I have clang-13.0.0-2, and llvm-13.0.0-3 installed.
I am trying to build an out of tree clang pass with CMake.
In CMakeLists.txt, I specified it would be linked with libclangTooling.
target_link_libraries(
${tool}
clangTooling
)
But I got an error:
/usr/bin/ld: cannot find -lclangTooling
Then I checked the clang lib directory /lib/clang/13.0.0/lib/linux
. There is no libclangTooling.so
, but the libclang_rt.*.so
.
Please tell me how to install the libclangTooling
, or where I can find it. Thanks!