[cfe-commits] r90350 - in /cfe/trunk/tools: CIndex/CMakeLists.txt CIndex/Makefile c-index-test/CMakeLists.txt c-index-test/Makefile index-test/CMakeLists.txt index-test/Makefile

Rafael Espindola espindola at google.com
Wed Dec 2 20:59:25 PST 2009


> For example, libFrontend.a includes the action which compiles code.
> Technically, that means that anything which links against
> libFrontend.a depends on the entire LLVM code generator, targets, etc.
> We should fix this, depending on the nature of .a files is very
> fragile.
>

We can add test targets to make it more reliable.

One way to do it is to just build shared libraries for each component.
We can then link an empty main with just that library. If the link
fails, it is because some dependency was missing.

I think linux distros in particular would love to have shared
libraries with correct dependencies :-)

If shared libraries are undesirable, we can compute the transitive
closure of the dependencies and try to link the empty main using
--whole-archive. This would probably be more costly, but should
provide the same test.

Cheers,
-- 
Rafael Ávila de Espíndola




More information about the cfe-commits mailing list