From a449c00f166b9ae9ff9557438dae150a0ccb4c5b Mon Sep 17 00:00:00 2001 From: ktkk Date: Fri, 5 Jun 2026 14:29:47 +0000 Subject: [PATCH] Add compile commands --- CMakeLists.txt | 2 ++ flake.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d723887..4c0a499 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,8 @@ project( C ) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + add_library( ${PROJECT_NAME} json.c diff --git a/flake.nix b/flake.nix index a614e1f..9a9973a 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,7 @@ clang-tools ctags valgrind + cdecl ]; in {