diff options
author | RyanGlScott <ryan.gl.scott@gmail.com> | 2015-12-15 01:02:46 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-12-15 01:38:10 +0100 |
commit | 05a5ebed916dc00bc5761224047440fefe10485e (patch) | |
tree | 583a611b8f5d7bc725543a0231e707811dd7048c /utils/runghc/ghc.mk | |
parent | 9017f16a78d66fe5aaf0ec98aeb9add1792fd838 (diff) | |
download | haskell-05a5ebed916dc00bc5761224047440fefe10485e.tar.gz |
Fix runghc when $1_$2_SHELL_WRAPPER = NO
When that variable isn't on (which is always the case on Windows),
`runghc` naively attempts to invoke `ghc` by finding an executable
simply named `ghc`. This won't work if `ghc` doesn't exist (e.g., if
we're building GHC and using `ghc-stage2` instead). A simple fix is to
test for the existence of `ghc` beforehand, and if that fails, fall back
on `ghc-stage2`.
Fixes #11185.
Test Plan: ./validate
Reviewers: austin, hvr, thomie, bgamari
Reviewed By: thomie, bgamari
Differential Revision: https://phabricator.haskell.org/D1621
GHC Trac Issues: #11185
Diffstat (limited to 'utils/runghc/ghc.mk')
-rw-r--r-- | utils/runghc/ghc.mk | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/runghc/ghc.mk b/utils/runghc/ghc.mk index e981abf9a5..9169ca21bd 100644 --- a/utils/runghc/ghc.mk +++ b/utils/runghc/ghc.mk @@ -42,4 +42,3 @@ install_runhaskell: $(call removeFiles,"$(DESTDIR)$(bindir)/runghc") $(LN_S) runghc-$(ProjectVersion) "$(DESTDIR)$(bindir)/runghc" endif - |