summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlp Mestanogullari <alpmestan@gmail.com>2019-05-30 14:18:01 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-11 18:41:52 -0400
commit762098bf2cfac657c0320249f62dc49bad77f7bf (patch)
tree20b53ee83153c9e7f91226b8a4a4d0e005aa9423
parent45616133efba0c17a461ecf085427b7956250fad (diff)
downloadhaskell-762098bf2cfac657c0320249f62dc49bad77f7bf.tar.gz
rts/RtsFlags.c: mention that -prof too enables support for +RTS -l
-rw-r--r--docs/users_guide/phases.rst2
-rw-r--r--rts/RtsFlags.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/users_guide/phases.rst b/docs/users_guide/phases.rst
index 1d3b2fbc5a..fa28874473 100644
--- a/docs/users_guide/phases.rst
+++ b/docs/users_guide/phases.rst
@@ -365,7 +365,7 @@ defined by your local GHC installation, the following trick is useful:
.. code-block:: c
- #ifdef MIN_VERSION_GLASGOW_HASKELL
+ #if defined(MIN_VERSION_GLASGOW_HASKELL)
#if MIN_VERSION_GLASGOW_HASKELL(7,10,2,0)
/* code that applies only to GHC 7.10.2 or later */
#endif
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index 0fb6ed6d9b..8d9b052bc7 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -830,7 +830,7 @@ error = true;
# define TRACING_BUILD_ONLY(x) x
#else
# define TRACING_BUILD_ONLY(x) \
-errorBelch("the flag %s requires the program to be built with -eventlog or -debug", \
+errorBelch("the flag %s requires the program to be built with -eventlog, -prof or -debug", \
rts_argv[arg]); \
error = true;
#endif