From 1050af9533e2a525ddf952b9643f8692fe86d55f Mon Sep 17 00:00:00 2001 From: tegwick Date: Sat, 2 May 2026 00:26:27 +0200 Subject: [PATCH] chore(build): try -fexternal-interpreter to bypass internal static linker GHC crashes at byte 287,686,318 reading libHSghc-9.10.3.a (~274 MB) via its internal static linker during TH evaluation of WidgetVersionInclude. -fexternal-interpreter delegates TH to a separate iserv process using the dynamic linker, bypassing readAr and the 274 MB archive entirely. Co-Authored-By: Claude Sonnet 4.6 --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 5543231..cc634c3 100644 --- a/flake.nix +++ b/flake.nix @@ -126,6 +126,7 @@ "--ghc-option=-fomit-interface-pragmas" "--disable-split-sections" "--ghc-option=-j1" + "--ghc-option=-fexternal-interpreter" ]; postUnpack = (old.postUnpack or "") + '' _actual="$sourceRoot/build/Generated/ActualTypes.hs"