fix runghc's GHC detection logic to cover the "in-tree Hadrian build" scenario

Authored by alpmestan on Jun 14 2019, 2:28 PM.

Description

fix runghc's GHC detection logic to cover the "in-tree Hadrian build" scenario

Before this patch, runghc would only run the GHC detection logic on Windows and
assume that it was invoked through a wrapper script on all other platforms.
This patch lifts this limitation and makes that logic work for the scenario
where someone is calling the runghc executable directly, without passing an
explicit path to GHC.

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Jun 16 2019, 5:27 AM
Parents
rGHC338336d37eaa: gitlab-ci: Build alpine release bindists
Branches
Unknown
Tags
Unknown