Skip to content

Commit

Permalink
Merge pull request #10167 from mpickering/wip/prof_dyn
Browse files Browse the repository at this point in the history
copy: Take into account extra-dyn-lib-flavours when copying bundled library
  • Loading branch information
mergify[bot] authored Jul 6, 2024
2 parents 1837262 + 8ee1fd8 commit 5baa0dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cabal/src/Distribution/Simple/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ installLib verbosity lbi targetDir dynlibTargetDir _builtDir pkg lib clbi = do
mkGenericSharedBundledLibName
platform
compiler_id
l
(l ++ f)
forM_ files $ \file ->
when (l' `isPrefixOf` file) $ do
isFile <- doesFileExist (i $ builtDir </> makeRelativePathEx file)
Expand All @@ -971,6 +971,7 @@ installLib verbosity lbi targetDir dynlibTargetDir _builtDir pkg lib clbi = do
dynlibTargetDir
file
| l <- extraBundledLibs (libBuildInfo lib)
, f <- "" : extraDynLibFlavours (libBuildInfo lib)
]
where
-- See Note [Symbolic paths] in Distribution.Utils.Path
Expand Down

0 comments on commit 5baa0dd

Please sign in to comment.