diff --git a/Project-Setup.md b/Project-Setup.md index bfe8e57..60531b1 100644 --- a/Project-Setup.md +++ b/Project-Setup.md @@ -68,6 +68,13 @@ intercept-build make all # generates compile_commands.json from the `make all` r ninja -C out/Release -t compdb cxx cc > compile_commands.json ``` +### [GN](https://gn.googlesource.com/gn/) + +```zsh +# Format: gn gen out/Release --export-compile-commands[=] +gn gen out/Release --export-compile-commands=cc +``` + ### [Waf](https://waf.io/) Load the `clang_compilation_database` tool in your wscript: