Skip to content

Commit

Permalink
Fix #6318 Register sublibraries if no library
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Oct 25, 2023
1 parent e1443d3 commit a850863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2044,7 +2044,7 @@ singleBuild
(packageBuildType package == C.Simple)
(displayException err)
_ -> pure ()
when hasLibrary $ cabal KeepTHLoading ["register"]
when (hasLibrary || hasInternalLibrary) $ cabal KeepTHLoading ["register"]

-- copy ddump-* files
case T.unpack <$> boptsDdumpDir eeBuildOpts of
Expand Down

0 comments on commit a850863

Please sign in to comment.