Skip to content

Commit

Permalink
feat(ulp): Generate compile_commands.json for ulp targets
Browse files Browse the repository at this point in the history
  • Loading branch information
andylinpersonal committed Jun 6, 2024
1 parent 8760e6d commit 639f585
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/ulp/project_include.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ function(ulp_embed_binary app_name s_sources exp_dep_srcs)
SOURCE_DIR ${idf_path}/components/ulp/cmake
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${app_name}
INSTALL_COMMAND ""
CMAKE_ARGS -DCMAKE_GENERATOR=${CMAKE_GENERATOR}
CMAKE_ARGS -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_GENERATOR=${CMAKE_GENERATOR}
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FLAG}
-DULP_S_SOURCES=$<TARGET_PROPERTY:${app_name},ULP_SOURCES>
-DULP_APP_NAME=${app_name}
Expand Down

0 comments on commit 639f585

Please sign in to comment.