[GHC] #11231: GHC's configure script does not honour CC env var

GHC ghc-devs at haskell.org
Mon Mar 28 18:44:39 UTC 2016


#11231: GHC's configure script does not honour CC env var
-------------------------------------+-------------------------------------
        Reporter:  hvr               |                Owner:
            Type:  bug               |               Status:  merge
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Build System      |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #9983             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by hvr):

 Replying to [comment:5 rwbarton]:
 > I think some of the other variables in that output you mention do not
 actually work either, so just fixing `CC` doesn't really reduce user
 confusion overall.

 didn't notice that yet... will fix that as well *sigh*

 > This doesn't fix a real bug, so does it really make sense to merge this
 to 8.0?

 Well it is a bug nonetheless... and it's easy to fix (fwiw, Cabal had a
 related bug which caused it to pass a non-standard --with-ghc to configure
 scripts rather than the standard CC= flag causing subtle problems on
 Win32)

 The idea is to switch to CC= as the recommended/documented way, and
 delaying merging this to 8.0 would mean that the confusion will continue
 for one year more than necessary. Also, 8.0 marks an easy to remember
 point in time where CC= became available. If this only starts working with
 8.2 it becomes harder to remember.

 > How much testing have you done in unusual configurations, e.g., cross-
 compiling?

 I actually did test crosscompiling to powerpc as well as checked whether
 `./validate` would pick it up.

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


More information about the ghc-tickets mailing list