fabrica

hanna/fabrica

build: disable release LTO to dodge a tokio rustc ICE

3ebabe5 · hanna committed on 2026-07-25

With aws-lc-sys (C) in the tree the Nix release build enables
cross-language LTO, which ICEs the pinned nightly compiling tokio.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
1 files changed · +4 −1UnifiedSplit
Cargo.toml +4 −1
@@ -170,4 +170,7 @@ todo = "deny"
170170
171171 [profile.release]
172172 strip = true
173-lto = "thin"
173+# LTO is disabled: with aws-lc-sys (C) in the tree the Nix release build enables
174+# cross-language LTO, which triggers a rustc ICE compiling tokio under the pinned
175+# nightly. Re-enable once the toolchain is bumped past the bug.
176+lto = false