Skip to content

Commit

Permalink
Cabal fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmitchell committed Dec 30, 2020
1 parent 22a02ca commit bf7afd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Binary.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ run Binary{..} = Just $ withCurrentDirectory path $ withTempDir $ \tdir -> do
let zname = if isWindows then vname ++ "-x86_64-windows.zip"
else if isMac then vname ++ "-x86_64-osx.tar.gz"
else vname ++ "-x86_64-linux.tar.gz"
tdir <- canonicalizePath tdir
b <- withCurrentDirectory tdir $ do
system_ "cabal v2-build --only-dependencies all"
system_ "cabal v2-build --only-dependencies"
system_ "cabal v2-configure --datadir=nul --disable-library-profiling"
system_ "cabal v2-build"
let out = "bin" </> vname
Expand Down

0 comments on commit bf7afd2

Please sign in to comment.