File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed
Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ CompileFlags :
2+ CompilationDatabase : .
Original file line number Diff line number Diff line change 3131* .exe
3232livekit.log
3333web /
34+ compile_commands.json
Original file line number Diff line number Diff line change 3838 "hidden" : true ,
3939 "generator" : " Ninja" ,
4040 "cacheVariables" : {
41- "LIVEKIT_USE_VCPKG" : " OFF"
41+ "LIVEKIT_USE_VCPKG" : " OFF" ,
42+ "CMAKE_EXPORT_COMPILE_COMMANDS" : " ON"
4243 },
4344 "condition" : {
4445 "type" : " equals" ,
5152 "hidden" : true ,
5253 "generator" : " Ninja" ,
5354 "cacheVariables" : {
54- "LIVEKIT_USE_VCPKG" : " OFF"
55+ "LIVEKIT_USE_VCPKG" : " OFF" ,
56+ "CMAKE_EXPORT_COMPILE_COMMANDS" : " ON"
5557 },
5658 "condition" : {
5759 "type" : " equals" ,
Original file line number Diff line number Diff line change @@ -152,6 +152,11 @@ configure() {
152152 cmake -S . -B " ${BUILD_DIR} " -DCMAKE_BUILD_TYPE=" ${BUILD_TYPE} "
153153 fi
154154 fi
155+
156+ if [[ -f " ${BUILD_DIR} /compile_commands.json" ]]; then
157+ ln -sf " ${BUILD_DIR} /compile_commands.json" " ${PROJECT_ROOT} /compile_commands.json"
158+ echo " ==> Symlinked compile_commands.json -> ${BUILD_DIR} /compile_commands.json"
159+ fi
155160}
156161
157162build () {
You can’t perform that action at this time.
0 commit comments