
#7535: Using -with-rtsopts=-N should fail unless -threaded is also specified -------------------------------------+------------------------------------- Reporter: mhoermann | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 4243 | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by osa1): The problem is `-with-rtsopts` is really dumb, it just puts whatever you pass to it in a file which is linked with the program to provide the options to the RTS. It does not do any checks on the input. For example, `-with-rtsopts=-blah-blah` is also accepted. Ideally I guess the compiler would have access to RTS argument parsers for all RTS variants, and check with the parser of the correct RTS variant (e.g. when building prof+debug way it would use the prof+debug runtime's parser). It seems like too much work and it's not clear whether the added complexity (for having access to RTS parsers in the compiler) would worth it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/7535#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler