2 files changed, 3 insertions, 1 deletions
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
|