Skip to content

Commit

Permalink
Merge pull request #7794 from alexbiehl/alex/static-pkg-hash
Browse files Browse the repository at this point in the history
Include extra-lib-dirs-static into PackageHash
  • Loading branch information
alexbiehl authored Dec 17, 2022
2 parents cb2b639 + d30e2be commit f530878
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cabal-install/src/Distribution/Client/PackageHash.hs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ data PackageHashConfigInputs = PackageHashConfigInputs {
pkgHashDebugInfo :: DebugInfoLevel,
pkgHashProgramArgs :: Map String [String],
pkgHashExtraLibDirs :: [FilePath],
pkgHashExtraLibDirsStatic :: [FilePath],
pkgHashExtraFrameworkDirs :: [FilePath],
pkgHashExtraIncludeDirs :: [FilePath],
pkgHashProgPrefix :: Maybe PathTemplate,
Expand Down Expand Up @@ -293,6 +294,7 @@ renderPackageHashInputs PackageHashInputs{
, opt "stripped-exe" True prettyShow pkgHashStripExes
, opt "debug-info" NormalDebugInfo (show . fromEnum) pkgHashDebugInfo
, opt "extra-lib-dirs" [] unwords pkgHashExtraLibDirs
, opt "extra-lib-dirs-static" [] unwords pkgHashExtraLibDirsStatic
, opt "extra-framework-dirs" [] unwords pkgHashExtraFrameworkDirs
, opt "extra-include-dirs" [] unwords pkgHashExtraIncludeDirs
, opt "prog-prefix" Nothing (maybe "" fromPathTemplate) pkgHashProgPrefix
Expand Down
1 change: 1 addition & 0 deletions cabal-install/src/Distribution/Client/ProjectPlanning.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3915,6 +3915,7 @@ packageHashConfigInputs shared@ElaboratedSharedConfig{..} pkg =
pkgHashDebugInfo = elabDebugInfo,
pkgHashProgramArgs = elabProgramArgs,
pkgHashExtraLibDirs = elabExtraLibDirs,
pkgHashExtraLibDirsStatic = elabExtraLibDirsStatic,
pkgHashExtraFrameworkDirs = elabExtraFrameworkDirs,
pkgHashExtraIncludeDirs = elabExtraIncludeDirs,
pkgHashProgPrefix = elabProgPrefix,
Expand Down
4 changes: 4 additions & 0 deletions changelog.d/pr-7794
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
synopsis: Include extra-lib-dirs-static into PackageHash
packages: cabal-install
prs: #7794
issues: #6935

0 comments on commit f530878

Please sign in to comment.