Skip to content

Commit 4159ec0

Browse files
committed
Use lib:packagename syntax to compile just the library
1 parent c75915e commit 4159ec0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Stack/Build/Execute.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,7 @@ singleBuild ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} =
769769
cabal (console && configHideTHLoading config) $
770770
(case taskType of
771771
TTLocal lp -> "build"
772-
-- Cabal... There doesn't seem to be a way to call out the library component...
773-
-- : "lib"
772+
: ("lib:" ++ packageNameString (packageName package))
774773
: map (T.unpack . T.append "exe:")
775774
(maybe [] Set.toList $ lpExeComponents lp)
776775
TTUpstream _ _ -> ["build"]) ++ extraOpts

0 commit comments

Comments
 (0)