Allow users to ignore optimization changes
* Add a new flag, `-fignore-optim-changes`, allowing them to avoid recompilation if the only changes are to the `-O` level or to flags controlling optimizations. * When `-fignore-optim-changes` is *off*, recompile when optimization flags (e.g., `-fno-full-laziness`) change. Previously, we ignored these unconditionally when deciding whether to recompile a module. Reviewers: austin, bgamari, simonmar Reviewed By: simonmar Subscribers: duog, carter, simonmar, rwbarton, thomie GHC Trac Issues: #13604 Differential Revision: https://phabricator.haskell.org/D4123 (cherry picked from commit 708ed9ca)
Showing
- compiler/iface/FlagChecker.hs 54 additions, 13 deletionscompiler/iface/FlagChecker.hs
- compiler/iface/LoadIface.hs 2 additions, 0 deletionscompiler/iface/LoadIface.hs
- compiler/iface/MkIface.hs 44 additions, 1 deletioncompiler/iface/MkIface.hs
- compiler/main/DynFlags.hs 69 additions, 4 deletionscompiler/main/DynFlags.hs
- compiler/main/HscTypes.hs 14 additions, 1 deletioncompiler/main/HscTypes.hs
- docs/users_guide/8.4.1-notes.rst 6 additions, 0 deletionsdocs/users_guide/8.4.1-notes.rst
- docs/users_guide/separate_compilation.rst 17 additions, 0 deletionsdocs/users_guide/separate_compilation.rst
- ghc/Main.hs 9 additions, 3 deletionsghc/Main.hs
- testsuite/tests/driver/Makefile 14 additions, 0 deletionstestsuite/tests/driver/Makefile
- testsuite/tests/driver/T13604.hs 1 addition, 0 deletionstestsuite/tests/driver/T13604.hs
- testsuite/tests/driver/T13604.stdout 1 addition, 0 deletionstestsuite/tests/driver/T13604.stdout
- testsuite/tests/driver/T13604a.hs 1 addition, 0 deletionstestsuite/tests/driver/T13604a.hs
- testsuite/tests/driver/T13604a.stdout 1 addition, 0 deletionstestsuite/tests/driver/T13604a.stdout
- testsuite/tests/driver/T13914/T13914.stdout 2 additions, 2 deletionstestsuite/tests/driver/T13914/T13914.stdout
- testsuite/tests/driver/all.T 2 additions, 0 deletionstestsuite/tests/driver/all.T
- testsuite/tests/ghci/scripts/T9293.stdout 8 additions, 0 deletionstestsuite/tests/ghci/scripts/T9293.stdout
- testsuite/tests/ghci/scripts/ghci024.stdout 2 additions, 0 deletionstestsuite/tests/ghci/scripts/ghci024.stdout
- testsuite/tests/ghci/scripts/ghci057.stdout 8 additions, 0 deletionstestsuite/tests/ghci/scripts/ghci057.stdout
- testsuite/tests/hpc/T11798.stdout 1 addition, 1 deletiontestsuite/tests/hpc/T11798.stdout
Loading
Please register or sign in to comment