mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
cmake: Export compile_commands.json as part of build
This commit is contained in:
committed by
Angus Gratton
parent
e94db98e73
commit
04a944598f
@ -28,6 +28,8 @@ macro(idf_set_global_variables)
|
||||
# path to idf.py tool
|
||||
set(IDFTOOL ${PYTHON} "${IDF_PATH}/tools/idf.py")
|
||||
|
||||
# generate compile_commands.json
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
|
||||
endmacro()
|
||||
|
||||
# Add all the IDF global compiler & preprocessor options
|
||||
|
Reference in New Issue
Block a user