> 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 _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
