| Summary: | Feature request: Make devtool create compile_commands.json files for clangd | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Jan Claussen <jan.claussen10> |
| Component: | devtools / tool chain | Assignee: | Unassigned <unassigned> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium | CC: | adrian.freihofer, meta.mr.watcher, meta.watcher, randy.macleod |
| Version: | unspecified | ||
| Target Milestone: | 5.99 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Jan Claussen
2023-06-20 08:36:38 UTC
An interesting idea but rather specific to the tools involved. Nice to have but not urgent. Sure, this has no priority. I would try implementing it myself if you could give me some ideas where to start off. I tried playing around with the make command in the do_compile.log, but did not have any success. I think it would also be good to do this with an installed SDK and use its headers, because afaik otherwise the workdirs are being cleaned up after a package is successfully built and with it all the header files, aren't they? Bulk move from 4.99 or 0.00 to 5.99 This is solved for some use cases. meson always did that by default. cmake does this as well since a few Yocto releases: https://git.openembedded.org/openembedded-core/tree/meta/classes-recipe/cmake.bbclass#n261. This leads to the question if devtool is the best place for this feature. Probably not, because devtool should be needed to setup the SDK and then the build-tool should provide what ever is needed for the development workflow, just what meson and cmake do. |