Have GHCi use object code for UnboxedTuples modules #15454
The idea is to automatically enable -fobject-code for modules that use UnboxedTuples, along with all the modules they depend on. When looking into how to solve this, I was pleased to find that there was already highly similar logic for enabling code generation when -fno-code is specified but TemplateHaskell is used. The state before this patch was that if you used unboxed tuples then you had to enable `-fobject-code` globally rather than on a per module basis.
Showing
- compiler/main/GhcMake.hs 55 additions, 10 deletionscompiler/main/GhcMake.hs
- docs/users_guide/8.8.1-notes.rst 7 additions, 0 deletionsdocs/users_guide/8.8.1-notes.rst
- docs/users_guide/ghci.rst 8 additions, 5 deletionsdocs/users_guide/ghci.rst
- testsuite/tests/ghci/prog014/prog014.stderr 0 additions, 2 deletionstestsuite/tests/ghci/prog014/prog014.stderr
- testsuite/tests/ghci/should_fail/T14608.stderr 0 additions, 3 deletionstestsuite/tests/ghci/should_fail/T14608.stderr
- testsuite/tests/ghci/should_fail/all.T 0 additions, 1 deletiontestsuite/tests/ghci/should_fail/all.T
- testsuite/tests/ghci/should_run/T14608.hs 0 additions, 0 deletionstestsuite/tests/ghci/should_run/T14608.hs
- testsuite/tests/ghci/should_run/T14608.script 0 additions, 0 deletionstestsuite/tests/ghci/should_run/T14608.script
- testsuite/tests/ghci/should_run/all.T 1 addition, 0 deletionstestsuite/tests/ghci/should_run/all.T
Loading
Please register or sign in to comment