This is mostly useful for cross-compilation and bootstrapping
of ghc from non-standard compiler.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
# @DESCRIPTION:
# returns the name of the ghc executable
ghc-getghc() {
- type -P ghc
+ type -P ${HC:-ghc}
}
# @FUNCTION: ghc-getghcpkg
# @DESCRIPTION:
# Internal function determines returns the name of the ghc-pkg executable
ghc-getghcpkg() {
- type -P ghc-pkg
+ type -P ${HC_PKG:-ghc-pkg}
}
# @FUNCTION: ghc-getghcpkgbin