Skip to content
Snippets Groups Projects

Retain CAFs in the interpreter

Merged Sylvain Henry requested to merge hsyl20/iserv-proxy:hsyl20/fix-keepcafs into master
  1. Nov 15, 2023
    • Sylvain Henry's avatar
      Retain CAFs in the interpreter · 320b0783
      Sylvain Henry authored
      iserv-proxy-interpreter dynamically loads libraries. It must retain CAFs
      to avoid issues like:
      
      > iserv-proxy-interpreter.exe:internal error:Evaluated a CAF that was GC'd!
      
      ghc-lib uses a hacky keepCAFsForGHCi.c file; iserv still uses a custom
      hs-main C file. We use -fkeep-cafs as it has the same effect.
      320b0783
Loading