From 5b7df815d2682271e352008737c54e78929640fd Mon Sep 17 00:00:00 2001 From: Bart Louwers Date: Wed, 30 Jul 2025 00:03:35 +0200 Subject: [PATCH] Update wscript to generate compile_commands.json --- pebble_tool/sdk/templates/wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pebble_tool/sdk/templates/wscript b/pebble_tool/sdk/templates/wscript index e721ba8..9ae0b33 100644 --- a/pebble_tool/sdk/templates/wscript +++ b/pebble_tool/sdk/templates/wscript @@ -21,6 +21,10 @@ def configure(ctx): Universal configuration: add your change prior to calling ctx.load('pebble_sdk'). """ ctx.load('pebble_sdk') + # this will generate build/compile_commands.json + # this allows clangd to provide code code completion, go-to-definition, etc. + # see https://clangd.llvm.org/installation#editor-plugins + ctx.load('clang_compilation_database') def build(ctx):