diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-03 17:01:05 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-03 17:01:05 +0530 |
commit | a52729a44eb1a42f10544e67eecc5cc85b9e99c2 (patch) | |
tree | 5f78ce7aa547a995ab534e107e72b8dd85de6f6e | |
parent | 728fd091725e9af27d3f872d1fd15c9be0dfa9f3 (diff) |
misc: Export compile commands
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CMakeLists.txt | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -1,3 +1,4 @@ +*~ .direnv/ build/* toolchain/cross/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fd73ce..207a760 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,6 @@ set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchain.cmake) +set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE) +# The checks don't work on cross compilers set(CMAKE_C_COMPILER_WORKS TRUE) set(CMAKE_CXX_COMPILER_WORKS TRUE) |