Skip to content

Commit

Permalink
Add build-info location to plan.json
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor committed Jul 30, 2021
1 parent 59b324a commit 0577967
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cabal-install/src/Distribution/Client/ProjectPlanOutput.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import Distribution.Simple.GHC
, GhcEnvironmentFileEntry(..), simpleGhcEnvironmentFile
, writeGhcEnvironmentFile )
import Distribution.Simple.BuildPaths
( dllExtension, exeExtension )
( dllExtension, exeExtension, buildInfoPref )
import qualified Distribution.Compat.Graph as Graph
import Distribution.Compat.Graph (Graph, Node)
import qualified Distribution.Compat.Binary as Binary
Expand Down Expand Up @@ -150,7 +150,9 @@ encodePlanAsJson distDirLayout elaboratedInstallPlan elaboratedSharedConfig =
| Just hash <- [elabPkgSourceHash elab] ] ++
(case elabBuildStyle elab of
BuildInplaceOnly ->
["dist-dir" J..= J.String dist_dir]
[ "dist-dir" J..= J.String dist_dir
, "build-info" J..= J.String (buildInfoPref dist_dir)
]
BuildAndInstall ->
-- TODO: install dirs?
[]
Expand Down

0 comments on commit 0577967

Please sign in to comment.