Hadrian: runghc wrapper is not passed libdir
The runGhc
wrapper created by Hadrian is not passed libdir
, unlike the wrapper for the ghc
executable. This can lead to inconsistencies, where ghc
and runGhc
end up looking for the libdir
in different places. This is undesirable as it complicates things when one tries to relocate the wrappers (different wrappers behaving differently).
The fix is simple: pass libdir
to the runGhc
wrapper, matching the behaviour of the ghc
executable wrapper. Fix in !8581 (closed).