aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-02-26 12:15:29 +0100
committerFelix Morgner <felix.morgner@gmail.com>2025-02-26 12:15:29 +0100
commitba7cd4a751ce4c295f345e3f93098a51e8cf21fb (patch)
treecc559c37fea214fd0ef05b2e43a793f2a9b5ed63
parent1bcce6efca8ba001075dcb4e3226baef4f95b9fa (diff)
downloadnewtype-ba7cd4a751ce4c295f345e3f93098a51e8cf21fb.tar.xz
newtype-ba7cd4a751ce4c295f345e3f93098a51e8cf21fb.zip
ide: ensure compile commands are available
-rw-r--r--.vscode/settings.json1
-rw-r--r--CMakePresets.json3
2 files changed, 3 insertions, 1 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json
index f9b4fe7..f6fbca2 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -11,6 +11,7 @@
"C_Cpp.intelliSenseEngine": "disabled",
"C_Cpp.errorSquiggles": "disabled",
"C_Cpp.autocomplete": "disabled",
+ "clangd.enable": true,
// RST Configuration
"[python]": {
diff --git a/CMakePresets.json b/CMakePresets.json
index da73733..b745332 100644
--- a/CMakePresets.json
+++ b/CMakePresets.json
@@ -11,7 +11,8 @@
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
- "CMAKE_CONFIGURATION_TYPES": "Debug;MinSizeRel"
+ "CMAKE_CONFIGURATION_TYPES": "Debug;MinSizeRel",
+ "CMAKE_EXPORT_COMPILE_COMMANDS": true
}
}
],