rts/RtsFlags.c: mention that -prof too enables support for +RTS -l
authorAlp Mestanogullari <alpmestan@gmail.com>
Thu, 30 May 2019 12:18:01 +0000 (14:18 +0200)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Tue, 11 Jun 2019 22:41:52 +0000 (18:41 -0400)
docs/users_guide/phases.rst
rts/RtsFlags.c

index 1d3b2fb..fa28874 100644 (file)
@@ -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
index 0fb6ed6..8d9b052 100644 (file)
@@ -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