Skip to content

Commit

Permalink
dont cache executable only packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Isenberg committed Sep 24, 2015
1 parent c759ccf commit 68248ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,8 @@ singleBuild runInBase ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} in
Set.empty

case taskLocation task of
Snap -> writePrecompiledCache eeBaseConfigOpts taskProvides (configCacheOpts cache) mpkgid (packageExes package)
Snap | packageHasLibrary package -> writePrecompiledCache eeBaseConfigOpts taskProvides (configCacheOpts cache) mpkgid (packageExes package)
| otherwise -> return ()
Local -> return ()

return mpkgid'
Expand Down

0 comments on commit 68248ca

Please sign in to comment.