Skip to content
  • John Ericson's avatar
    Factor out 'getLibDir' / 'getBaseDir' into a new GHC.BaseDir ghc-boot module · 387050d0
    John Ericson authored and Marge Bot's avatar Marge Bot committed
    ghc-pkg and ghc already both needed this. I figure it is better to
    deduplicate, especially seeing that changes to one (FreeBSD CPP) didn't
    make it to the other.
    
    Additionally in !1090 I make ghc-pkg look up the settings file, which
    makes it use the top dir a bit more widely. If that lands, any
    difference in the way they find the top dir would be more noticable.
    
    That change also means sharing more code between ghc and ghc-package
    (namely the settings file parsing code), so I'd think it better to get
    off the slipperly slope of duplicating code now.
    387050d0