Skip to content

Commit

Permalink
Build libs/executables even when running tests/benchmarks #805
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Aug 18, 2015
1 parent 00c8778 commit 7b972fc
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/Stack/Build/ConstructPlan.hs
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,13 @@ constructPlan mbp0 baseConfigOpts0 locals extraToBuild0 locallyRegistered loadPa

econfig <- asks getEnvConfig
let onWanted lp = do
{-
- Arguably this is the right thing to do. However, forcing the
- library to rebuild causes the cabal_macros.h file to change,
- which makes GHC rebuild everything...
case lpExeComponents lp of
Nothing -> return ()
Just _ -> void $ addDep $ packageName $ lpPackage lp
-}
Just _ -> void $ addDep False $ packageName $ lpPackage lp

case lpTestBench lp of
Just tb -> addFinal lp tb
-- See comment above
Nothing -> void $ addDep False $ packageName $ lpPackage lp
Nothing -> return ()
let inner = do
mapM_ onWanted $ filter lpWanted locals
mapM_ (addDep False) $ Set.toList extraToBuild0
Expand Down

0 comments on commit 7b972fc

Please sign in to comment.