Skip to content

Commit

Permalink
Use lib:packagename syntax to compile just the library
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Aug 18, 2015
1 parent c75915e commit 4159ec0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,7 @@ singleBuild ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} =
cabal (console && configHideTHLoading config) $
(case taskType of
TTLocal lp -> "build"
-- Cabal... There doesn't seem to be a way to call out the library component...
-- : "lib"
: ("lib:" ++ packageNameString (packageName package))
: map (T.unpack . T.append "exe:")
(maybe [] Set.toList $ lpExeComponents lp)
TTUpstream _ _ -> ["build"]) ++ extraOpts
Expand Down

0 comments on commit 4159ec0

Please sign in to comment.