Skip to content

Commit 744b5f2

Browse files
fix(crispasr): resolve vendored WebRTC from project root
CrispASR now builds a vendored WebRTC VAD, but its include paths assume CrispASR is the top-level CMake project. Extend the existing embedded-project rewrite to the shared third_party root. Assisted-by: Codex:gpt-5 [Codex]
1 parent 999776b commit 744b5f2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

backend/go/crispasr/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ sources/CrispASR:
6363
git submodule update --init --recursive --depth 1 --single-branch -- \
6464
ggml third_party/c2pa-audio
6565
# CrispASR's src/CMakeLists.txt locates its vendored llama.cpp
66-
# (crispasr-llama-core, used by the chat C-ABI) and the c2pa-audio
67-
# submodule (crispasr_c2pa_native, the pure-C++ C2PA signer) via
66+
# (crispasr-llama-core, used by the chat C-ABI), c2pa-audio submodule
67+
# (crispasr_c2pa_native, the pure-C++ C2PA signer), and WebRTC VAD via
6868
# ${CMAKE_SOURCE_DIR}, which assumes CrispASR is the top-level CMake
6969
# project. We add_subdirectory it, so ${CMAKE_SOURCE_DIR} is THIS backend
7070
# dir and those sources aren't found. Rewrite to ${PROJECT_SOURCE_DIR}
@@ -73,6 +73,7 @@ sources/CrispASR:
7373
sed -i.bak \
7474
-e 's#\$${CMAKE_SOURCE_DIR}/examples/talk-llama#\$${PROJECT_SOURCE_DIR}/examples/talk-llama#' \
7575
-e 's#\$${CMAKE_SOURCE_DIR}/third_party/c2pa-audio#\$${PROJECT_SOURCE_DIR}/third_party/c2pa-audio#' \
76+
-e 's#\$${CMAKE_SOURCE_DIR}/third_party#\$${PROJECT_SOURCE_DIR}/third_party#' \
7677
sources/CrispASR/src/CMakeLists.txt && rm -f sources/CrispASR/src/CMakeLists.txt.bak
7778

7879
# Detect OS

0 commit comments

Comments
 (0)