<div dir="ltr">So, the main issue is, how to create simultaneously one library to incorporate code to another llvm pass and one library (.so) to be able to test the pass<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-21 9:25 GMT+02:00 Anastasiya Ruzhanskaya <span dir="ltr"><<a href="mailto:anastasiya.ruzhanskaya@frtk.ru" target="_blank">anastasiya.ruzhanskaya@frtk.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I also get now th error, that Two passes with the same argument attempted to be registered! (as I have two libraries (.a and .so) , which seems now linking fine)<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-08-21 8:17 GMT+02:00 Anastasiya Ruzhanskaya <span dir="ltr"><<a href="mailto:anastasiya.ruzhanskaya@frtk.ru" target="_blank">anastasiya.ruzhanskaya@frtk.<wbr>ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello,<br></div>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:<br></div>passA - A.so<br></div>passB - B.so<br><br></div>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?<br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>