Skip to content

Commit

Permalink
Always build exes, due to cabal copy limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Nov 10, 2015
1 parent e7d28e4 commit dc6313f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1381,13 +1381,18 @@ primaryComponentOptions lp = concat
]

exesToBuild :: LocalPackage -> Set Text
exesToBuild lp =
if lpWanted lp
then exeComponents (lpComponents lp)
-- Build all executables in the event that no
-- specific list is provided (as happens with
-- extra-deps).
else packageExes (lpPackage lp)
exesToBuild lp = packageExes (lpPackage lp)
-- NOTE: Ideally we'd do something like the following code, allowing
-- the user to control which executables get built. However, due to
-- https://github.com/haskell/cabal/issues/2780 we must build all
-- exes...
--
-- if lpWanted lp
-- then exeComponents (lpComponents lp)
-- -- Build all executables in the event that no
-- -- specific list is provided (as happens with
-- -- extra-deps).
-- else packageExes (lpPackage lp)

-- Test-suite and benchmark build components.
finalComponentOptions :: LocalPackage -> [String]
Expand Down

0 comments on commit dc6313f

Please sign in to comment.