forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use SetupHooks for Configure build-type
This commit implements the Configure build-type in terms of Hooks, when build-type: Hooks is available (for Cabal >= 3.13). This moves Configure away from an implementation in terms of UserHooks, i.e. away from the Custom build-type.
- Loading branch information
Showing
6 changed files
with
132 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
synopsis: Configure build-type in terms of Hooks | ||
packages: Cabal, cabal-install | ||
prs: #9969 | ||
|
||
description: { | ||
|
||
The `build-type: Configure` is now implemented in terms of `build-type: Hooks` | ||
rather than in terms of `build-type: Custom`. This moves the `Configure` | ||
build-type away from the `Custom` issues. Eventually, `build-type: Hooks` will | ||
no longer imply packages are built in legacy-fallback mode. Now, when that | ||
happens, `Configure` will also stop implying `legacy-fallback`. | ||
|
||
The observable aspect of this change is `runConfigureScript` now having a | ||
different type, and `autoconfSetupHooks` being exposed `Distribution.Simple`. | ||
The former is motivated by internal implementation details, while the latter | ||
provides the `SetupHooks` value for the `Configure` build type, which can be | ||
consumed by other `Hooks` clients (e.g. eventually HLS). | ||
} |