the.bay.news

How to export `compile_commands.json`?

Ziggit
How to export `compile_commands.json`?
When I use Zig to build a C++ project, I want better code hints in my editor. For CMake-based projects, I can generate a compile_commands.json file by adding the following code to the build configuration: set(CMAKE_EXPORT_COMPILE_COMMANDS ON) I would like to know if Zig provides a similar mechanism.

When I use Zig to build a C++ project, I want better code hints in my editor. For CMake-based projects, I can generate a compile_commands.json file by adding the following code…

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.