<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> re initial indexing speed: if you use ninja, there is a recently-merged PR (which should be in ninja 1.13) that may help with this if your project has multiple executable/lib targets:</p><p><a href="https://github.com/ninja-build/ninja/pull/2497" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/ninja-build/ninja/p</span><span class="invisible">ull/2497</span></a></p><p>so e.g. if your project builds an executable &#39;foo&#39; then: </p><p>ninja -t compdb-targets foo &gt; compile_commands.json</p><p>...gives you a compilation database with all commands required to build foo, and *only* those commands.</p>
Reply