Generate compile_commands.json

This commit is contained in:
Konstantinos Sideris 2018-01-25 15:08:19 +02:00
parent 0e91dae922
commit 208ca4f638
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -81,6 +81,7 @@ result
*.dmg
dist/MacOS/nheko.app/Contents/MacOS/nheko
.clang
compile_commands.json
# AppImage
*.AppImage

View File

@ -1,7 +1,8 @@
debug:
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1
@cmake --build build
@cp build/compile_commands.json .
ci:
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo