-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Labels
proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.This issue suggests modifications. If it also has the "accepted" label then it is planned.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Milestone
Description
The JSON Compilation Database is a file format that stores information about files compiled in a build.
This database can be then consumed by tooling like clangd to provide auto-completion and refactorings to your C/C++ code base.
It would be very nice to expose the clang command line flag -MJ argument from the zig compiler to support generating this file.
I can imagine this in a flag like -femit-clang-compile-db=<path>
The optimal use case would be that all std.Build.Step.Compile collect information about their builds and zig build will then emit a merged version of the compile_commands.json emitted by each individual compilation.
theoparis, notcancername, g-berthiaume, kassane, LeoWeyles and 25 more
Metadata
Metadata
Assignees
Labels
proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.This issue suggests modifications. If it also has the "accepted" label then it is planned.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management