Dependencies ensure that Protobufs are generated before all libraries
depending on the headers are built, not linked.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Otherwise sources including Index.pb.h or Index.grpc.pb.h can be compiled before the those headers are generated.
https://github.com/kirillbobyrev/indexing-tools/runs/629305684 (disregard the mess in the repo)
clang-tools-extra/clangd/index/remote/CMakeLists.txt | ||
---|---|---|
26 | is this equivalent to DEPENDS RemoteIndexProtos in the library? |
Comment Actions
Now that I know this it kind of makes sense (I guess it's faster to just build everything and then link when all deps are ready), just something I didn't think about :)
clang-tools-extra/clangd/index/remote/CMakeLists.txt | ||
---|---|---|
26 | Ah, true, I had a feeling there was something like this on top of my mind, but forgot about DEPENDS :) Thanks! |
is this equivalent to DEPENDS RemoteIndexProtos in the library?
Slightly clearer probably.