From 208ca4f638febd8ab407723434152cfb2f54bbb7 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Thu, 25 Jan 2018 15:08:19 +0200 Subject: [PATCH] Generate compile_commands.json --- .gitignore | 1 + Makefile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 902e90e4..e232f844 100644 --- a/.gitignore +++ b/.gitignore @@ -81,6 +81,7 @@ result *.dmg dist/MacOS/nheko.app/Contents/MacOS/nheko .clang +compile_commands.json # AppImage *.AppImage diff --git a/Makefile b/Makefile index 72476699..053e40c4 100644 --- a/Makefile +++ b/Makefile @@ -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