Added clangd extra script

This commit is contained in:
Christoffer Martinsson 2023-06-02 23:34:34 +02:00
parent b88efa604c
commit a4e0fcd847
2 changed files with 7 additions and 1 deletions

5
firmware/extra_script.py Normal file
View File

@ -0,0 +1,5 @@
import os
Import("env")
# include toolchain paths
env.Replace(COMPILATIONDB_INCLUDE_TOOLCHAIN=True)

View File

@ -14,4 +14,5 @@ board = teensylc
framework = arduino
build_flags = -D USB_KEYBOARDONLY -D LAYOUT_SWEDISH -w
board_build.f_cpu = 48000000L
upload_protocol = teensy-cli
extra_scripts = pre:extra_script.py
upload_protocol = teensy-cli