Nicer error on +RTS -hc without -rtsopts or -prof
authorThomas Miedema <thomasmiedema@gmail.com>
Mon, 25 Jan 2016 19:07:31 +0000 (20:07 +0100)
committerThomas Miedema <thomasmiedema@gmail.com>
Tue, 26 Jan 2016 15:07:08 +0000 (16:07 +0100)
commite24a9b5de00bc2669a52a1f9905bd40e7be0d857
tree1285faaa5b1c495ab85aae7b9294c19a67081160
parent01809bcd4c9066244d705360f0d9a3a2176385f4
Nicer error on +RTS -hc without -rtsopts or -prof

Before:
 * without -rtsopts: Most RTS options are disabled. Link with -rtsopts to enable them.
 * with -rtsopts: invalid heap profile option: -hc
After:
 * the flag -hc requires the program to be built with -prof

Copy `Note [OPTION_SAFE vs OPTION_UNSAFE]` from commit 8c7ad0bd.

Reviewed by: bgamari

Differential Revision: https://phabricator.haskell.org/D1845
rts/RtsFlags.c