Skip to content

Allow completely disabling +RTS options parsing

I'd like to have a way to completely disable the +RTS flag so that a ghc-compiled binary does not eat it, but keeps it in argv/getArgs instead.

This is needed whenever you try to make a program that's supposed to pass on all arguments, for example something like ccache or pid1. As you can imagine, swallowing +RTS argument's isn't great when you want to pass them on to a Haskell program.

Trac metadata
Trac field Value
Version 8.0.1
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC nh2
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information