Skip to content

Commit 8a1058f

Browse files
authored
Merge pull request #11952 from ffaf1/fix-doc-buildinfo
Clarify `.buildinfo` precedence
2 parents 0c5f471 + 36c223d commit 8a1058f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

doc/cabal-package-description-file.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3210,10 +3210,11 @@ The :pkg-field:`build-type` ``Configure`` differs from ``Simple`` in two ways:
32103210
- If the package root directory contains a file called
32113211
*package*\ ``.buildinfo`` after the configuration step, subsequent
32123212
steps will read it to obtain additional settings for `build
3213-
information`_ fields,to be merged with the ones
3214-
given in the ``.cabal`` file. In particular, this file may be
3215-
generated by the ``configure`` script mentioned above, allowing these
3216-
settings to vary depending on the build environment.
3213+
information`_ fields. ``.buildinfo`` settings will be merged with
3214+
``.cabal`` file ones, the former taking precedence over the latter.
3215+
The ``.buildinfo`` file may be generated by the ``configure`` script
3216+
mentioned above, allowing these settings to vary depending on the
3217+
build environment.
32173218

32183219
Note that the package's ``extra-source-files`` are available to the
32193220
``configure`` script when it is executed. In typical ``autoconf`` fashion,

0 commit comments

Comments
 (0)