diff options
author | Ben Gamari <ben@well-typed.com> | 2021-09-08 21:02:27 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-09-13 09:36:54 -0400 |
commit | a2a16e4cee5104f03cabcdd229dd64735c7dad31 (patch) | |
tree | d00108be1557288945fdd3fe0e882d0e3325050f | |
parent | 3c885880a42559849ac449f0070dfaecf924ac5e (diff) | |
download | haskell-a2a16e4cee5104f03cabcdd229dd64735c7dad31.tar.gz |
hadrian: Recommend use of +werror over explicit flavour modification
As noted in #20327, the previous guidance was out-of-date.
-rw-r--r-- | hadrian/doc/user-settings.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hadrian/doc/user-settings.md b/hadrian/doc/user-settings.md index 40b55db3a3..a15afa48b4 100644 --- a/hadrian/doc/user-settings.md +++ b/hadrian/doc/user-settings.md @@ -114,12 +114,12 @@ prefixes, and `*` matches an entire path component, excluding any separators. #### Enabling -Werror It is useful to enable `-Werror` when building GHC as this setting is -used in the CI to ensure a warning free build. The `werror` function can be -used to easily modify a flavour to turn this setting on. +used in the CI to ensure a warning-free build. The `+werror` +[flavour transformer](flavours.md#flavour-transformers) +can be used to easily modify a flavour to turn this setting on: ``` -devel2WerrorFlavour :: Flavour -devel2WerrorFlavour = werror (developmentFlavour Stage2) +hadrian/build --flavour=validate+werror ``` #### Linking GHC against the debugged RTS |