Skip to content

Commit 1baaca1

Browse files
committed
Build libs/executables even when running tests/benchmarks #805
1 parent 75ce370 commit 1baaca1

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/Stack/Build/ConstructPlan.hs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,20 +132,13 @@ constructPlan mbp0 baseConfigOpts0 locals extraToBuild0 locallyRegistered loadPa
132132

133133
econfig <- asks getEnvConfig
134134
let onWanted lp = do
135-
{-
136-
- Arguably this is the right thing to do. However, forcing the
137-
- library to rebuild causes the cabal_macros.h file to change,
138-
- which makes GHC rebuild everything...
139-
140135
case lpExeComponents lp of
141136
Nothing -> return ()
142-
Just _ -> void $ addDep $ packageName $ lpPackage lp
143-
-}
137+
Just _ -> void $ addDep False $ packageName $ lpPackage lp
144138

145139
case lpTestBench lp of
146140
Just tb -> addFinal lp tb
147-
-- See comment above
148-
Nothing -> void $ addDep False $ packageName $ lpPackage lp
141+
Nothing -> return ()
149142
let inner = do
150143
mapM_ onWanted $ filter lpWanted locals
151144
mapM_ (addDep False) $ Set.toList extraToBuild0

0 commit comments

Comments
 (0)