Yes, potentially we can split cc_library to 1000 separate libraries with one object file in each (ugly!), but then we would need to specify “hdrs” for each of those libraries individually with only what that source actually includes (transitively!) which does not look like an easy feat at all ☹
Unfortunately it does not look like “generate once – use many times”. As soon as there is any change in what sources include what headers that BUILD file needs to be regenerated. It is a hindrance, but more importantly I don’t see a way to produce transitive list of included headers for each source file shorter than compile that source.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/BY5PR01MB563524D9B9AD1FF23EF556F6A3899%40BY5PR01MB5635.prod.exchangelabs.com.