[RTS] Make -po work
ClosedPublic

Authored by niteria on Sep 11 2017, 11:52 AM.

Details

Summary

db2a667655506c43dd3c8260d29031bde55f1bee added -po option, but
the part that parses it was missing.

Test Plan

On a simple file:

./inplace/bin/ghc-stage2 A.hs -prof -main-is A; ./A +RTS -P -potest

produced test.prof file and didn't produce A.prof file.

./A +RTS -P

produced A.prof file

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
niteria created this revision.Sep 11 2017, 11:52 AM
bgamari edited edge metadata.Sep 13 2017, 7:13 AM

Thanks for doing this, @niteria. I still have no idea how this ended up happening.

Did you mean to accept it?

I have commit bits so I can merge it myself (and I prefer to), but I'm putting stuff out because I think another set of eyes is helpful. Accept for me means that someone looked at it and that's more or less they want it implemented.

bgamari accepted this revision.Sep 13 2017, 11:05 AM

Whoops, indeed I did.

This revision is now accepted and ready to land.Sep 13 2017, 11:05 AM
This revision was automatically updated to reflect the committed changes.