[commit: packages/Cabal] ghc-head: Add a notion of program search path to the ProgramDb (84c4ddc)

git at git.haskell.org git at git.haskell.org
Mon Aug 26 23:29:40 CEST 2013


Repository : ssh://git@git.haskell.org/Cabal

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/Cabal.git;a=commit;h=84c4ddce652cd8f60c57c940abfbe927bb03654f

>---------------------------------------------------------------

commit 84c4ddce652cd8f60c57c940abfbe927bb03654f
Author: Duncan Coutts <duncan at community.haskell.org>
Date:   Sat Aug 10 21:45:46 2013 +0100

    Add a notion of program search path to the ProgramDb
    
    Previously we would just use the normal system $PATH for finding
    programs (unless the Program provided some custom method). Now the
    ProgramDb has its own notion of the search path and we use that for
    finding programs (by default). The search path can be either specific
    directories or the system search method (ie $PATH on unix and something
    similar on Win32). The default search path is just the system one.
    
    In addition, this search path is passed on to programs when we invoke
    them as the $PATH env var.


>---------------------------------------------------------------

84c4ddce652cd8f60c57c940abfbe927bb03654f
 Cabal/Cabal.cabal                            |    1 +
 Cabal/Distribution/Simple/GHC.hs             |   43 +++++-----
 Cabal/Distribution/Simple/LHC.hs             |   12 +--
 Cabal/Distribution/Simple/Program.hs         |    4 +
 Cabal/Distribution/Simple/Program/Builtin.hs |    6 +-
 Cabal/Distribution/Simple/Program/Db.hs      |   33 ++++++--
 Cabal/Distribution/Simple/Program/Find.hs    |  117 ++++++++++++++++++++++++++
 Cabal/Distribution/Simple/Program/Types.hs   |   16 ++--
 8 files changed, 195 insertions(+), 37 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 84c4ddce652cd8f60c57c940abfbe927bb03654f




More information about the ghc-commits mailing list