diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2015-08-06 17:25:46 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-08-06 17:25:47 +0200 |
commit | eca9a1a17c12d01636417fb88bda5ee5fe34577f (patch) | |
tree | 671d7f90ed254d63517c100fe503804dacd322f1 /testsuite/tests/ghc-api/T10052 | |
parent | 64dba5119fdecb4a5b6a2993919a963d02171783 (diff) | |
download | haskell-eca9a1a17c12d01636417fb88bda5ee5fe34577f.tar.gz |
Ensure DynFlags are consistent
While we have always had makeDynFlagsConsistent to enforce a variety of
consistency invariants on DynFlags, it hasn't been widely used.
GHC.Main, for instance, ignored it entirely. This leads to issues like
Trac #10549, where an OPTIONS_GHC pragma introduced an inconsistency,
leading to a perplexing crash later in compilation.
Here I add consistency checks in GHC.Main.set{Session,Program}DynFlags,
closing this hole.
Fixes #10549.
Test Plan: Validate with T10549
Reviewers: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1128
GHC Trac Issues: #10549
Diffstat (limited to 'testsuite/tests/ghc-api/T10052')
-rw-r--r-- | testsuite/tests/ghc-api/T10052/T10052.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/ghc-api/T10052/T10052.stderr b/testsuite/tests/ghc-api/T10052/T10052.stderr index d298a59365..62f0b6d152 100644 --- a/testsuite/tests/ghc-api/T10052/T10052.stderr +++ b/testsuite/tests/ghc-api/T10052/T10052.stderr @@ -1,3 +1,3 @@ -<no location info>: Warning: +when making flags consistent: warning: -O conflicts with --interactive; -O ignored. |