Fix compile_commands generation for vim

This commit is contained in:
Nick Hahn 2020-12-29 14:15:27 +01:00
parent 8e16bc1e87
commit dedb6857a3
2 changed files with 5 additions and 0 deletions

4
compile_commands_env.py Normal file
View file

@ -0,0 +1,4 @@
import os
Import("env")
env.Replace(COMPILATIONDB_PATH=os.path.join("$PROJECT_DIR", "compile_commands.json"))

View file

@ -12,6 +12,7 @@
platform = atmelavr
board = nanoatmega328
framework = arduino
extra_scripts = post:compile_commands_env.py
;lib_deps =
; stevemarple/AsyncDelay @ ^1.1.2
; stevemarple/SoftWire @ ^2.0.4