Skip to content

Commit

Permalink
Build executables for local extra dpes #920
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Sep 7, 2015
1 parent 6e7e09c commit 59e0721
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Other enhancements:
Bug fixes:

* Hacky workaround for optparse-applicative issue with `stack exec --help` [#806](https://github.com/commercialhaskell/stack/issues/806)
* Build executables for local extra deps [#920](https://github.com/commercialhaskell/stack/issues/920)

## 0.1.4.1

Expand Down
9 changes: 7 additions & 2 deletions src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,13 @@ singleBuild runInBase ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} in
-- which will allow users to turn off library building if
-- desired
| packageHasLibrary package]
, map (T.unpack . T.append "exe:")
(maybe [] Set.toList $ lpExeComponents lp)
, map (T.unpack . T.append "exe:") $ Set.toList $
case lpExeComponents lp of
Just exes -> exes
-- Build all executables in the event that no
-- specific list is provided (as happens with
-- extra-deps).
Nothing -> packageExes package
]
TTUpstream _ _ -> ["build"]) ++ extraOpts

Expand Down

0 comments on commit 59e0721

Please sign in to comment.