Remove executable filename check on windows
authorklebinger.andreas@gmx.at <klebinger.andreas@gmx.at>
Mon, 15 Jan 2018 18:52:15 +0000 (13:52 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 18 Jan 2018 19:20:28 +0000 (14:20 -0500)
commit4eccca7e298c08a35f099bd146aedaaf2b853dcf
treee1fd7c158c451233641d7bb408238a899a460c42
parentf28645c04958a2e2ab61239db70478d9dcce6ba6
Remove executable filename check on windows

On Windows GHC enforces currently that the real executable is named
ghc.exe/ghc-stage[123].exe.

I don't see a good reason why this is neccessary.
This patch removes this restriction and fixes #14652

Test Plan: ci

Reviewers: bgamari, Phyx

Reviewed By: Phyx

Subscribers: Phyx, rwbarton, thomie, carter

GHC Trac Issues: #14652

Differential Revision: https://phabricator.haskell.org/D4296

(cherry picked from commit 1bf70b2041dc2b7c89565fcb46cad8f151f96790)
compiler/main/SysTools/BaseDir.hs