Added GN info.

David Manouchehri 2020-01-30 16:14:44 -05:00
parent 18c96c8659
commit f3d69ae8fb

@ -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 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[=<target_name1,target_name2...>]
gn gen out/Release --export-compile-commands=cc
```
### [Waf](https://waf.io/) ### [Waf](https://waf.io/)
Load the `clang_compilation_database` tool in your wscript: Load the `clang_compilation_database` tool in your wscript: