Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix: prefer toolchain-provided linker to embed web-ui assets

Attila Oláhbd21af33f3f6
diff --git a/scripts/embed-frontend.sh b/scripts/embed-frontend.sh
index 73a693191..65928007d 100755
--- a/scripts/embed-frontend.sh
+++ b/scripts/embed-frontend.sh
@@ -72,7 +72,7 @@ for file in "${FILES[@]}"; do
if $IS_LINUX; then
# Linux: ld -r -b binary (zero bloat, ELF only)
abs_obj="$(cd "$(dirname "$0")/.." && pwd)/$obj"
- (cd "$DIST_DIR" && ld -r -b binary -o "$abs_obj" "$rel")
+ (cd "$DIST_DIR" && "${LD:-ld}" -r -b binary -o "$abs_obj" "$rel")
else
# macOS/Windows/MSYS2: generate C byte array + cc (no xxd dependency)
local_c="$OUTPUT_DIR/embed_${mangled}.c"