Add rtsopts ignore and ignoreAll.
authorAndreas Klebinger <klebinger.andreas@gmx.at>
Fri, 28 Jul 2017 22:25:24 +0000 (18:25 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 28 Jul 2017 22:25:25 +0000 (18:25 -0400)
commitd75bba852db208b1d9fcb84dab01598a765d2534
tree275fc254a9dcba97f2d86f230e3c2257e6328f30
parent9e9fb57c37c62bb6c90f15b173c5d3632121c66a
Add rtsopts ignore and ignoreAll.

These ignore commandline arguments for ignore and commandline as well as
GHCRTS arguments for ignoreAll. Passing RTS flags given on the command
line along to the program by simply skipping processing of these flags
by the RTS.

This fixes #12870.

Test Plan: ./validate

Reviewers: austin, hvr, bgamari, erikd, simonmar

Reviewed By: simonmar

Subscribers: Phyx, rwbarton, thomie

GHC Trac Issues: #12870

Differential Revision: https://phabricator.haskell.org/D3740
17 files changed:
compiler/main/DynFlags.hs
docs/users_guide/phases.rst
docs/users_guide/runtime_control.rst
includes/RtsAPI.h
rts/RtsFlags.c
testsuite/tests/rts/flags/Makefile [new file with mode: 0644]
testsuite/tests/rts/flags/T12870.hs [new file with mode: 0644]
testsuite/tests/rts/flags/T12870_.stdout [new file with mode: 0644]
testsuite/tests/rts/flags/T12870a.stdout [new file with mode: 0644]
testsuite/tests/rts/flags/T12870c.stderr [new file with mode: 0644]
testsuite/tests/rts/flags/T12870d.stdout [new file with mode: 0644]
testsuite/tests/rts/flags/T12870e.stdout [new file with mode: 0644]
testsuite/tests/rts/flags/T12870f.stdout [new file with mode: 0644]
testsuite/tests/rts/flags/T12870g.hs [new file with mode: 0644]
testsuite/tests/rts/flags/T12870g.stdout [new file with mode: 0644]
testsuite/tests/rts/flags/T12870h.stdout [new file with mode: 0644]
testsuite/tests/rts/flags/all.T [new file with mode: 0644]