[commit: ghc] master: Update user manual sections for -rtsopts and -with-rtsopts (97d1419)
git at git.haskell.org
git at git.haskell.org
Thu Jun 14 14:05:14 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/97d141989348b2bd399ff7bc92eaf1a502f59952/ghc
>---------------------------------------------------------------
commit 97d141989348b2bd399ff7bc92eaf1a502f59952
Author: Ömer Sinan Ağacan <omeragacan at gmail.com>
Date: Thu Jun 14 09:12:57 2018 -0400
Update user manual sections for -rtsopts and -with-rtsopts
- References to -rtsopts updated for the new ignore and ignoreAll
options.
- Short description of -rtsopts updated. ignore and ignoreAll are now
shown in the man page.
- Add a few clarifications about -rtsopts and -with-rtsopts interaction.
Reviewers: bgamari, AndreasK
Reviewed By: AndreasK
Subscribers: Phyx, rwbarton, thomie, carter
GHC Trac Issues: #15268
Differential Revision: https://phabricator.haskell.org/D4840
>---------------------------------------------------------------
97d141989348b2bd399ff7bc92eaf1a502f59952
docs/users_guide/phases.rst | 32 +++++++++++++++++++++-----------
1 file changed, 21 insertions(+), 11 deletions(-)
diff --git a/docs/users_guide/phases.rst b/docs/users_guide/phases.rst
index a2c25c7..27948e7 100644
--- a/docs/users_guide/phases.rst
+++ b/docs/users_guide/phases.rst
@@ -874,11 +874,12 @@ for example).
``Main`` module present (normally the compiler will not attempt
linking when there is no ``Main``).
- The flags :ghc-flag:`-rtsopts[=⟨none|some|all⟩]` and
+ The flags :ghc-flag:`-rtsopts[=⟨none|some|all|ignore|ignoreAll⟩]` and
:ghc-flag:`-with-rtsopts=⟨opts⟩` have no effect when used with
:ghc-flag:`-no-hs-main`, because they are implemented by changing the
definition of ``main`` that GHC generates. See :ref:`using-own-main` for
- how to get the effect of :ghc-flag:`-rtsopts[=⟨none|some|all⟩]` and
+ how to get the effect of
+ :ghc-flag:`-rtsopts[=⟨none|some|all|ignore|ignoreAll⟩]` and
:ghc-flag:`-with-rtsopts=⟨opts⟩` when using your own ``main``.
.. ghc-flag:: -debug
@@ -932,12 +933,17 @@ for example).
:ghc-flag:`-eventlog` can be used with :ghc-flag:`-threaded`. It is implied by
:ghc-flag:`-debug`.
-.. ghc-flag:: -rtsopts[=⟨none|some|all⟩]
+.. ghc-flag:: -rtsopts[=⟨none|some|all|ignore|ignoreAll⟩]
:shortdesc: Control whether the RTS behaviour can be tweaked via command-line
flags and the ``GHCRTS`` environment variable. Using ``none``
means no RTS flags can be given; ``some`` means only a minimum
- of safe options can be given (the default), and ``all`` (or no
- argument at all) means that all RTS flags are permitted.
+ of safe options can be given (the default); ``all`` (or no
+ argument at all) means that all RTS flags are permitted; ``ignore``
+ means RTS flags can be given, but are treated as regular arguments and
+ passed to the Haskell program as arguments; ``ignoreAll`` is the same as
+ ``ignore``, but ``GHCRTS`` is also ignored. ``-rtsopts`` does not
+ affect ``-with-rtsopts`` behavior; flags passed via ``-with-rtsopts``
+ are used regardless of ``-rtsopts``.
:type: dynamic
:category: linking
@@ -982,6 +988,9 @@ for example).
Note that ``-rtsopts`` has no effect when used with :ghc-flag:`-no-hs-main`;
see :ref:`using-own-main` for details.
+ ``-rtsopts`` does not affect RTS options passed via ``-with-rtsopts``;
+ those are used regardless of ``-rtsopts``.
+
.. ghc-flag:: -with-rtsopts=⟨opts⟩
:shortdesc: Set the default RTS options to ⟨opts⟩.
:type: dynamic
@@ -1000,16 +1009,17 @@ for example).
.. ghc-flag:: -no-rtsopts-suggestions
:shortdesc: Don't print RTS suggestions about linking with
- :ghc-flag:`-rtsopts[=⟨none|some|all⟩]`.
+ :ghc-flag:`-rtsopts[=⟨none|some|all|ignore|ignoreAll⟩]`.
:type: dynamic
:category: linking
This option disables RTS suggestions about linking with
- :ghc-flag:`-rtsopts[=⟨none|some|all⟩]` when they are not available. These
- suggestions would be unhelpful if the users have installed Haskell programs
- through their package managers. With this option enabled, these suggestions
- will not appear. It is recommended for people distributing binaries to
- build with either ``-rtsopts`` or ``-no-rtsopts-suggestions``.
+ :ghc-flag:`-rtsopts[=⟨none|some|all|ignore|ignoreAll⟩]` when they are not
+ available. These suggestions would be unhelpful if the users have installed
+ Haskell programs through their package managers. With this option enabled,
+ these suggestions will not appear. It is recommended for people
+ distributing binaries to build with either ``-rtsopts`` or
+ ``-no-rtsopts-suggestions``.
.. ghc-flag:: -fno-gen-manifest
:shortdesc: Do not generate a manifest file (Windows only)
More information about the ghc-commits
mailing list