Skip to content

build: thin LTO release profile (Tauri OOM fix)#5

Merged
DutchSailor merged 1 commit into
mainfrom
fix/cargo-thin-lto
May 20, 2026
Merged

build: thin LTO release profile (Tauri OOM fix)#5
DutchSailor merged 1 commit into
mainfrom
fix/cargo-thin-lto

Conversation

@DutchSailor

Copy link
Copy Markdown
Collaborator

Sets release profile to thin LTO + 16 codegen-units to avoid rustc-LLVM OOM on dev machines. Ships as v0.1.2 alongside the WebView2 bootstrapper fix.

The aggressive default `lto = true` + `codegen-units = 1` release config
caused `rustc-LLVM ERROR: out of memory` on dev machines with 16-32 GB
RAM when building with webview2-com + tao + report engine in scope.
Thin LTO with 16 codegen-units keeps the linker memory bounded and the
build still finishes in ~5 minutes with a near-identical binary size.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@DutchSailor DutchSailor merged commit 6754f67 into main May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant