From 7c3ea677f2d0fd6830c56eff67d2fbad776fae9a Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Thu, 21 Mar 2013 00:48:14 +0100 Subject: [PATCH] Make it possible to build empty libraries again. Restores old behaviour broken by @igfoo in 8395c5db800284c9e2b54b5c45b94c4a3bfdfcf2. Fixes #1241. --- Cabal/Distribution/Simple/Register.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cabal/Distribution/Simple/Register.hs b/Cabal/Distribution/Simple/Register.hs index f9b59aa22c8..87c67052f96 100644 --- a/Cabal/Distribution/Simple/Register.hs +++ b/Cabal/Distribution/Simple/Register.hs @@ -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,