From 287c63a093c2d964fa3e46377f821e94d5abfa10 Mon Sep 17 00:00:00 2001 From: Andrey Portnoy Date: Thu, 2 Oct 2025 18:40:32 -0400 Subject: [PATCH] Configure CMake to export compile_commands.json (#2645) This helps enable LSP for code navigation using clangd. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ecdc68cf..84d4198ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_INSTALL_MESSAGE NEVER) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # ----------------------------- Configuration ----------------------------- option(MLX_BUILD_TESTS "Build tests for mlx" ON)