Re-enable ghc library internal-interpreter flag for the target stage when cross compiling
In !12555, the `internal-interpreter` flag of the `ghc` library is disabled when doing cross compilation, based on the observation that target code always need iserv anyway, and host internal interpreter is only useful for loading plugins (see !7377) but that's unfinished work and untested in CI.
However, it's worth considering to re-enable the flag, at least for the target stage when cross compiling. Users might want to write their own GHC API program that runs on the target platform and use internal interpreter to load code; on some target platforms iserv wouldn't work at all, but the internal interpreter might still work to some extent.
One example is wasm: on wasm there's no subprocess support at all, so iserv can't launch, nor the compiler processes to get anything serious done in GHC API. But GHC API can at least load shared libraries and do in-memory bytecode linking/evaluation. Once this issue is fixed, it should be possible to make a Haskell playground in browser based on ghci bytecode.
issue