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 *.dmg
dist/MacOS/nheko.app/Contents/MacOS/nheko dist/MacOS/nheko.app/Contents/MacOS/nheko
.clang .clang
compile_commands.json
# AppImage # AppImage
*.AppImage *.AppImage

View file

@ -1,7 +1,8 @@
debug: 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 @cmake --build build
@cp build/compile_commands.json .
ci: ci:
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo @cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo