ghc-boot: Eliminate unnecessary use of getEnvironment
Previously we were using System.Environment.getEnvironment
, which
decodes all environment variables into Haskell String
s, where a simple
environment lookup would do. This made the compiler's allocations
unnecessarily dependent on the environment.
Fixes #20431.