Skip to content

Commit 3451ce2

Browse files
wesmclaude
andcommitted
Fix Windows build: pass --no-keep-memory to linker for large DuckDB lib
MinGW's ld runs out of memory linking DuckDB's large static library. The --no-keep-memory flag reduces ld's memory usage at the cost of slower linking. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5ad7fcb commit 3451ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
$VERSION = "${{ github.ref_name }}".TrimStart("v")
168168
169169
New-Item -ItemType Directory -Force -Path dist | Out-Null
170-
$LDFLAGS = "-s -w -X github.com/wesm/msgvault/cmd/msgvault/cmd.Version=v${VERSION}"
170+
$LDFLAGS = "-s -w -X github.com/wesm/msgvault/cmd/msgvault/cmd.Version=v${VERSION} -extldflags '-Wl,--no-keep-memory'"
171171
go build -tags fts5 -trimpath -ldflags="$LDFLAGS" -o dist/msgvault.exe ./cmd/msgvault
172172
if ($LASTEXITCODE -ne 0) { throw "Build failed" }
173173

0 commit comments

Comments
 (0)