[GHC] #16120: Hadrian should use cabal build-tools installed Alex and Happy if necessary

GHC ghc-devs at haskell.org
Wed Jan 2 19:37:40 UTC 2019


#16120: Hadrian should use cabal build-tools installed Alex and Happy if necessary
-------------------------------------+-------------------------------------
        Reporter:  adamse            |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Build System      |              Version:  8.6.3
  (Hadrian)                          |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by adamse):

 No need to specify the full path to hadrian, this diff suffices:

 {{{
 diff --git a/hadrian/build.cabal.sh b/hadrian/build.cabal.sh
 index 9fddd61c4e..3f45272345 100755
 --- a/hadrian/build.cabal.sh
 +++ b/hadrian/build.cabal.sh
 @@ -24,7 +24,7 @@ CABVER=( ${CABVERSTR//./ } )
  if [ "${CABVER[0]}" -gt 2 -o "${CABVER[0]}" -eq 2 -a "${CABVER[1]}" -ge 2
 ];
  then
      "$CABAL" --project-file="$PROJ" new-build $CABFLAGS -j exe:hadrian
 -    "$CABAL" --project-file="$PROJ" new-run   $CABFLAGS    exe:hadrian --
 \
 +    "$CABAL" --project-file="$PROJ" new-exec  $CABFLAGS    hadrian -- \
          --lint             \
          --directory "$PWD" \
          "$@"
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16120#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list