Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Commit

Permalink
switch from using inplace conf to target conf for dep dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaz committed Oct 6, 2017
1 parent c18ecb8 commit 669e8ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hptool/src/Target.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ buildAction buildDir hpRel bc = do
removeDirectoryRecursive depsDB
localCommand' [] "ghc-pkg" ["init", depsDB]
forM_ deps $ \d -> do
let inplace = packageInplaceConf d
hasInplace <- doesFileExist inplace
when hasInplace $
let targetconf = packageTargetConf d
hasTargetconf <- doesFileExist targetconf
when hasTargetconf $
localCommand' [] "ghc-pkg"
[ "register"
, "--package-db=" ++ depsDB
, "--verbose=" ++ show ghcPkgVerbosity
, inplace
, targetconf
]

cabalVerbosity <- show . fromEnum <$> shakeToCabalVerbosity
Expand Down

0 comments on commit 669e8ab

Please sign in to comment.