diff options
author | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2018-11-17 12:21:51 +0100 |
---|---|---|
committer | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2018-11-17 13:51:43 +0100 |
commit | 65517979adf03a1fa5d33d34e419e7dfc9444002 (patch) | |
tree | f2118e0768eca55fb0d73b1a33feea53758e0b92 | |
parent | fc670c4df4593880e3d6a5f710c8ec549d36ed84 (diff) | |
download | haskell-65517979adf03a1fa5d33d34e419e7dfc9444002.tar.gz |
Building GHC with hadrian on FreeBSD
Summary: I'm currently trying to make `hadrian` work as a build system
on FreeBSD (https://ghc.haskell.org/trac/ghc/ticket/15860).
I'm still having some issues with `libgmp` but one can get a working
`ghc` using `--integer-simple` and this patch.
Reviewers: bgamari, erikd, alpmestan
Reviewed By: alpmestan
Subscribers: rwbarton, carter
Differential Revision: https://phabricator.haskell.org/D5335
-rw-r--r-- | compiler/main/SysTools/BaseDir.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/main/SysTools/BaseDir.hs b/compiler/main/SysTools/BaseDir.hs index 16f5a44655..786b0e4ee9 100644 --- a/compiler/main/SysTools/BaseDir.hs +++ b/compiler/main/SysTools/BaseDir.hs @@ -27,7 +27,7 @@ import System.FilePath import Data.List -- POSIX -#if defined(darwin_HOST_OS) || defined(linux_HOST_OS) +#if defined(darwin_HOST_OS) || defined(linux_HOST_OS) || defined(freebsd_HOST_OS) import System.Environment (getExecutablePath) #endif @@ -136,7 +136,7 @@ rootDir :: FilePath -> FilePath rootDir = takeDirectory . takeDirectory . normalise getBaseDir = Just . (\p -> p </> "lib") . rootDir <$> getExecutablePath -#elif defined(darwin_HOST_OS) || defined(linux_HOST_OS) +#elif defined(darwin_HOST_OS) || defined(linux_HOST_OS) || defined(freebsd_HOST_OS) -- on unix, this is a bit more confusing. -- The layout right now is something like -- |