From 94d8ab9e5ba7d91a9f56c9bea11ebbcbd5e199fd Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Wed, 8 Nov 2017 15:51:49 +0800 Subject: [PATCH] Provide the cabal configuration with the proper --basedir This requires haskell/cabal/pull/4874 --- src/Settings/Builders/GhcCabal.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Settings/Builders/GhcCabal.hs b/src/Settings/Builders/GhcCabal.hs index 7bd53087fe..654b3ec2fa 100644 --- a/src/Settings/Builders/GhcCabal.hs +++ b/src/Settings/Builders/GhcCabal.hs @@ -18,6 +18,8 @@ ghcCabalBuilderArgs = mconcat path <- getContextPath stage <- getStage mconcat [ arg "configure" + , arg "--basedir" + , arg =<< pkgPath <$> getPackage , arg "--cabal-file" , arg =<< fromJust . pkgCabalFile <$> getPackage , arg "--distdir"