diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2020-12-21 08:59:27 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-01-27 17:38:32 -0500 |
commit | 925738839891b320b9436e7383d55dce2b8d4543 (patch) | |
tree | 23b1eff30fedebfabb827193ac5259a06a13ef6b /rts | |
parent | 34a8a0e4cf188a30d2b4b65909f24185c80d071e (diff) | |
download | haskell-925738839891b320b9436e7383d55dce2b8d4543.tar.gz |
Deprecate -h flag
It is confusing that it defaults to two different things depending on
whether we are in the profiling way or not.
Use -hc if you have a profiling build
Use -hT if you have a normal build
Fixes #19031
Diffstat (limited to 'rts')
-rw-r--r-- | rts/RtsFlags.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c index 95656c3da6..ddd561b29c 100644 --- a/rts/RtsFlags.c +++ b/rts/RtsFlags.c @@ -1381,6 +1381,9 @@ error = true; #if !defined(PROFILING) switch (rts_argv[arg][2]) { case '\0': + errorBelch("-h is deprecated and will be removed in the next release (9.4),\nuse -hT instead."); + + FALLTHROUGH; case 'T': OPTION_UNSAFE; RtsFlags.ProfFlags.doHeapProfile = HEAP_BY_CLOSURE_TYPE; @@ -2133,6 +2136,8 @@ static bool read_heap_profiling_flag(const char *arg) bool error = false; switch (arg[2]) { case '\0': + errorBelch("-h is deprecated and will be removed in the next release (9.4),\nuse -hc instead."); + FALLTHROUGH; case 'C': case 'c': case 'M': |