[Git][ghc/ghc][wip/T26226] compiler: rename ghciSuported -> internalInterpreterSupported
Teo Camarasu pushed to branch wip/T26226 at Glasgow Haskell Compiler / GHC Commits: 44cdfa93 by Teo Camarasu at 2025-07-25T20:25:50+01:00 compiler: rename ghciSuported -> internalInterpreterSupported GHCi and the internal interpreter are two different things. This tracks support for the latter. You can use GHCi without the internal interpreter. - - - - - 2 changed files: - compiler/GHC/Driver/Downsweep.hs - compiler/GHC/Utils/Constants.hs Changes: ===================================== compiler/GHC/Driver/Downsweep.hs ===================================== @@ -1010,7 +1010,7 @@ enableCodeGenWhen logger tmpfs staticLife dynLife unit_env mod_graph = do -- #16331 - when no "internal interpreter" is available but we -- need to process some TemplateHaskell or QuasiQuotes, we automatically -- turn on -fexternal-interpreter. - ext_interp_enable ms = not ghciSupported && internalInterpreter + ext_interp_enable ms = not internalInterpreterSupported && internalInterpreter where lcl_dflags = ms_hspp_opts ms internalInterpreter = not (gopt Opt_ExternalInterpreter lcl_dflags) ===================================== compiler/GHC/Utils/Constants.hs ===================================== @@ -2,7 +2,7 @@ module GHC.Utils.Constants ( debugIsOn - , ghciSupported + , internalInterpreterSupported , isWindowsHost , isDarwinHost ) @@ -22,11 +22,11 @@ branch of the conditional, thereby dropping debug code altogether when the flags are off. -} -ghciSupported :: Bool +internalInterpreterSupported :: Bool #if defined(HAVE_INTERNAL_INTERPRETER) -ghciSupported = True +internalInterpreterSupported = True #else -ghciSupported = False +internalInterpreterSupported = False #endif debugIsOn :: Bool View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/44cdfa931f541242796c37d099d0a261... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/44cdfa931f541242796c37d099d0a261... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Teo Camarasu (@teo)