Fix #9438 by converting a panic to an error message
Previously, GHC was quite eager to panic whenever it was fed an archive file when `DYNAMIC_GHC_PROGRAMS=YES`. This ought to be an explicit error message instead, so this patch accomplishes just that. Test Plan: make test TEST=T14708 Reviewers: Phyx, hvr, bgamari Reviewed By: Phyx Subscribers: thomie, carter GHC Trac Issues: #9438, #14708, #15032 Differential Revision: https://phabricator.haskell.org/D4589
Showing
- compiler/ghci/Linker.hs 13 additions, 2 deletionscompiler/ghci/Linker.hs
- testsuite/.gitignore 1 addition, 0 deletionstestsuite/.gitignore
- testsuite/tests/ghci/linking/Makefile 13 additions, 5 deletionstestsuite/tests/ghci/linking/Makefile
- testsuite/tests/ghci/linking/T14708.hs 2 additions, 0 deletionstestsuite/tests/ghci/linking/T14708.hs
- testsuite/tests/ghci/linking/T14708.stderr 4 additions, 0 deletionstestsuite/tests/ghci/linking/T14708.stderr
- testsuite/tests/ghci/linking/add.c 1 addition, 0 deletionstestsuite/tests/ghci/linking/add.c
- testsuite/tests/ghci/linking/all.T 8 additions, 0 deletionstestsuite/tests/ghci/linking/all.T
Loading
Please register or sign in to comment