Hadrian: introduce an easy way for users to build with -split-sections
Any user can now trivially build any number of Haskell packages with
-split-sections
by using splitSections
/splitSectionsIf
on any
existing or new flavour:
-- build all packages but the ghc library with -split-sections
splitSections :: Flavour -> Flavour
-- build all packages that satisfy the given predicate
-- with --split-sections
splitSectionsIf :: (Package -> Bool) -> Flavour -> Flavour
See the new section in doc/user-settings.md
.
This addresses #16443 (closed).