Skip to content

Commit 7e8fd9d

Browse files
committed
Allow building with sublibs and no libs (#3787).
1 parent 964a46c commit 7e8fd9d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Stack/Package.hs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ packageFromPackageDescription packageConfig pkgFlags (PackageDescriptionPair pkg
277277
Just lib
278278
in
279279
case mlib of
280-
Nothing
281-
| null extraLibNames -> NoLibraries
282-
| otherwise -> error "Package has buildable sublibraries but no buildable libraries, I'm giving up"
280+
Nothing -> NoLibraries
283281
Just _ -> HasLibraries foreignLibNames
284282
, packageInternalLibraries = subLibNames
285283
, packageTests = M.fromList

0 commit comments

Comments
 (0)