[Webkit-unassigned] [Bug 182689] Unified builds broke ycm autocompletion using compilation databases

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 28 09:48:56 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=182689

--- Comment #25 from Yusuke Suzuki <yusukesuzuki at slowstart.org> ---
(In reply to Carlos Eduardo Ramalho from comment #20)
> (In reply to Yusuke Suzuki from comment #19)
> > Interesting! Now I think the good way to fix this issue is adding an option
> > disabling unified builds (which makes compile_commands.json expected one).
> 
> Hmm indeed! This might really be the way to go. Also, to get the
> compile_commands.json file one does not need to compile the project, but
> only "generate" or "configure" it with CMake e.g. with 
> 
> `build-webkit --wpe --release --generate-project-only`
> 
> If the option to disable Unified Sources were added, I figure someone could
> simply run e.g.
> 
> `build-webkit --wpe --release --generate-project-only
> --disable-unified-sources`
> 
> and copy the compile_commands.json file to project root to enable
> autocompletion. I think it should be best because then one could reconfigure
> the project with unified sources and get the 2x compilation speedup still.

Yeah, do you know the way only generating compile_commands.json?
If we can do that, hacky (but It Works (TM)) way can be usable!

1. First, generate JSON w/o unified builds
2. Build w/ unified builds (generates appropriate headers etc.)
3. Happy!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181228/636b6dee/attachment.html>


More information about the webkit-unassigned mailing list