From 76a33a374312a65750b2d016e386bb2b2bf3d87a Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Sun, 14 Apr 2024 16:12:34 +0100 Subject: [PATCH] Force include hs_init_with_rtsopts (#4028) Co-authored-by: Moritz Angermann --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index e5e635a223..420f4c70df 100644 --- a/flake.nix +++ b/flake.nix @@ -367,6 +367,7 @@ "-threaded" # "-debug" "-optl-lffi" + "-optl-lHSrts_thr" ] # This is fairly idiotic. LLD will strip out foreign exported # symbols (a GHC bug? Codegen bug?). So we need to pass `-u ` @@ -391,6 +392,8 @@ "chat_valid_name" "chat_json_length" "chat_write_file" + # We also need to keep the rts init method around. + "hs_init_with_rtsopts" ]; postInstall = '' set -x