Fix logic error in GhcMake.enableCodeGenForTH
transitive_deps_set was incorrect, it was not considering the dependencies of dependencies in some cases. I've corrected it and tidied it up a little. The test case from leftaroundabout, as linked to from the ticket, is added with small modifications to flatten directory structure. Test Plan: make test TEST=T13949 Reviewers: austin, bgamari, alexbiehl Reviewed By: alexbiehl Subscribers: rwbarton, thomie, alexbiehl GHC Trac Issues: #13949 Differential Revision: https://phabricator.haskell.org/D3720
Showing
- compiler/main/GhcMake.hs 21 additions, 16 deletionscompiler/main/GhcMake.hs
- testsuite/tests/th/should_compile/T13949/ASCII.hs 10 additions, 0 deletionstestsuite/tests/th/should_compile/T13949/ASCII.hs
- testsuite/tests/th/should_compile/T13949/Makefile 3 additions, 0 deletionstestsuite/tests/th/should_compile/T13949/Makefile
- testsuite/tests/th/should_compile/T13949/PatternGenerator.hs 8 additions, 0 deletionstestsuite/tests/th/should_compile/T13949/PatternGenerator.hs
- testsuite/tests/th/should_compile/T13949/These.hs 4 additions, 0 deletionstestsuite/tests/th/should_compile/T13949/These.hs
- testsuite/tests/th/should_compile/T13949/Tree.hs 6 additions, 0 deletionstestsuite/tests/th/should_compile/T13949/Tree.hs
- testsuite/tests/th/should_compile/T13949/all.T 2 additions, 0 deletionstestsuite/tests/th/should_compile/T13949/all.T
Loading
Please register or sign in to comment