HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

GHC.Driver.ByteCode

  • 2 values
valuecompile_for_interpreter :: HscEnv -> (HscEnv -> IO a) -> IO a
#

Modify flags such that objects are compiled for the interpreter's way. This is necessary when building foreign objects for Template Haskell, since those are object code built outside of the pipeline, which means they aren't subject to the mechanism in enableCodeGenWhen that requests dynamic build outputs for dependencies when the interpreter used for TH is dynamic but the main outputs aren't. Furthermore, the HPT only stores one set of objects with different names for bytecode linking in HomeModLinkable, so the usual hack for switching between ways in get_link_deps doesn't work.