[llvm-dev] Combining passes

Anastasiya Ruzhanskaya via llvm-dev llvm-dev at lists.llvm.org
Sun Aug 20 23:17:36 PDT 2017


Hello,
this is a question, concerning cmake lists configuration. I am trying to
link together two llvm passes, but they still should be as two modules. So:
passA - A.so
passB - B.so

passB should use passA , so I sould use target_link_libraries ( and of
course, I have included useAnalysis in passB) . But I can't link libraries
that are build as Modules, so I tried to create two libraries at once ;
A.a(static) and A.so (llvm does not allow to create shared libraries).
Still that does not work : .a library has always conflicted declarations.
Are there any other ways?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170821/4c05ba3e/attachment.html>


More information about the llvm-dev mailing list