diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-12-02 20:46:59 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2021-12-03 10:36:05 -0500 |
commit | d87d375fb4d18a300a0e24d68eaf7ca6af8b5829 (patch) | |
tree | f1814c5723fd83058c2ecb9228caa022d234611d | |
parent | 83fcaa15e1c7e88508e49a50b544cba953882ae0 (diff) | |
download | haskell-wip/T20734.tar.gz |
rts: +RTS -DL should imply +RTS -Dlwip/T20734
Otherwise the user may be surprised by the missing context provided by
the latter.
-rw-r--r-- | docs/users_guide/runtime_control.rst | 1 | ||||
-rw-r--r-- | rts/RtsFlags.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/users_guide/runtime_control.rst b/docs/users_guide/runtime_control.rst index 8f8b9b3fcb..909feff545 100644 --- a/docs/users_guide/runtime_control.rst +++ b/docs/users_guide/runtime_control.rst @@ -1354,6 +1354,7 @@ recommended for everyday use! .. rts-flag:: -Dp DEBUG: prof .. rts-flag:: -Da DEBUG: apply .. rts-flag:: -Dl DEBUG: linker +.. rts-flag:: -DL DEBUG: linker (verbose); implies :rts-flag:`-Dl` .. rts-flag:: -Dm DEBUG: stm .. rts-flag:: -Dz DEBUG: stack squeezing .. rts-flag:: -Dc DEBUG: program coverage diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c index 426f04a70c..50de729183 100644 --- a/rts/RtsFlags.c +++ b/rts/RtsFlags.c @@ -462,6 +462,7 @@ usage_text[] = { " -Dp DEBUG: prof", " -Da DEBUG: apply", " -Dl DEBUG: linker", +" -DL DEBUG: linker (verbose)", " -Dm DEBUG: stm", " -Dz DEBUG: stack squeezing", " -Dc DEBUG: program coverage", @@ -2145,6 +2146,7 @@ static void read_debug_flags(const char* arg) break; case 'L': RtsFlags.DebugFlags.linker_verbose = true; + RtsFlags.DebugFlags.linker = true; break; case 'a': RtsFlags.DebugFlags.apply = true; |