diff --git a/src/Stack/Build/Execute.hs b/src/Stack/Build/Execute.hs index 55e43e4410..16580140bf 100644 --- a/src/Stack/Build/Execute.hs +++ b/src/Stack/Build/Execute.hs @@ -896,6 +896,9 @@ singleBuild runInBase ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} in D.createDirectoryIfMissing True bindir let dst = bindir FP. FP.takeFileName exe createLink exe dst `catchIO` \_ -> D.copyFile exe dst + case (mlib, exes) of + (Nothing, _:_) -> markExeInstalled (taskLocation task) taskProvides + _ -> return () -- Find the package in the database wc <- getWhichCompiler