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 Windows linker: allow-multiple-definition for MinGW CRT symbols

Martin Vogelfa6aa581aa58
diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.yml
index b91ac98a6..223561b28 100644
--- a/.github/workflows/dry-run.yml
+++ b/.github/workflows/dry-run.yml
@@ -98,7 +98,7 @@ jobs:
- name: Test
shell: msys2 {0}
- run: scripts/test.sh CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi"
+ run: scripts/test.sh CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi -Wl,--allow-multiple-definition"
# ── Step 3: Build binaries (standard + UI, all OS) ──────────
build-unix:
@@ -180,7 +180,7 @@ jobs:
- name: Build standard binary
shell: msys2 {0}
- run: scripts/build.sh CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi"
+ run: scripts/build.sh CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi -Wl,--allow-multiple-definition"
- name: Archive standard binary
shell: pwsh
@@ -190,7 +190,7 @@ jobs:
- name: Build UI binary
shell: msys2 {0}
- run: scripts/build.sh --with-ui CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi"
+ run: scripts/build.sh --with-ui CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi -Wl,--allow-multiple-definition"
- name: Archive UI binary
shell: pwsh
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 01d1efd38..7dc5c1a18 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -112,7 +112,7 @@ jobs:
- name: Test
shell: msys2 {0}
- run: scripts/test.sh CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi"
+ run: scripts/test.sh CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi -Wl,--allow-multiple-definition"
# ── Step 3: Build binaries (standard + UI, all OS) ──────────
build-unix:
@@ -194,7 +194,7 @@ jobs:
- name: Build standard binary
shell: msys2 {0}
- run: scripts/build.sh --version ${{ inputs.version }} CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi"
+ run: scripts/build.sh --version ${{ inputs.version }} CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi -Wl,--allow-multiple-definition"
- name: Archive standard binary
shell: pwsh
@@ -204,7 +204,7 @@ jobs:
- name: Build UI binary
shell: msys2 {0}
- run: scripts/build.sh --with-ui --version ${{ inputs.version }} CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi"
+ run: scripts/build.sh --with-ui --version ${{ inputs.version }} CC=clang CXX=clang++ WIN32_LIBS="-lws2_32 -lpsapi -Wl,--allow-multiple-definition"
- name: Archive UI binary
shell: pwsh