Skip to content

Commit

Permalink
Make it possible to build empty libraries again.
Browse files Browse the repository at this point in the history
Restores old behaviour broken by @igfoo in
8395c5d. Fixes #1241.
  • Loading branch information
23Skidoo committed Mar 20, 2013
1 parent 4e76030 commit 7c3ea67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cabal/Distribution/Simple/Register.hs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ generalInstalledPackageInfo adjustRelIncDirs pkg lib clbi installDirs =
then libdir installDirs : extraLibDirs bi
else extraLibDirs bi,
IPI.hsLibraries = [ libname
| LibraryName libname <- componentLibraries clbi ],
| LibraryName libname <- componentLibraries clbi
, hasLibrary ],
IPI.extraLibraries = extraLibs bi,
IPI.extraGHCiLibraries = [],
IPI.includeDirs = absinc ++ adjustRelIncDirs relinc,
Expand Down

0 comments on commit 7c3ea67

Please sign in to comment.