Add -fwhole-archive-hs-libs
authorSimon Marlow <marlowsd@gmail.com>
Thu, 2 Mar 2017 21:17:12 +0000 (16:17 -0500)
committerBen Gamari <ben@smart-cactus.org>
Fri, 3 Mar 2017 00:58:01 +0000 (19:58 -0500)
commita6874e546294173c166859769dd8054887a6ded7
treefa2b2000ff6b4dcab30807adf3f8e3685550b9cf
parent57d969ec9bea8ca44e735845e9aa91292fe5e75b
Add -fwhole-archive-hs-libs

We're building a demo to show how to hot-swap Haskell code in a
running process, and unfortunately it wasn't possible to convince GHC
to generate the correct linker command line without this extra knob.

Test Plan:
Tested it on a hot-swapping demo (which is not released yet, but will
be shortly)

Reviewers: niteria, austin, erikd, JonCoens, bgamari

Reviewed By: bgamari

Subscribers: Phyx, rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3136
compiler/main/DriverPipeline.hs
compiler/main/DynFlags.hs
docs/users_guide/phases.rst
testsuite/tests/driver/linkwhole/Handles.hs [new file with mode: 0644]
testsuite/tests/driver/linkwhole/Main.hs [new file with mode: 0644]
testsuite/tests/driver/linkwhole/Makefile [new file with mode: 0644]
testsuite/tests/driver/linkwhole/MyCode.hs [new file with mode: 0644]
testsuite/tests/driver/linkwhole/Types.hs [new file with mode: 0644]
testsuite/tests/driver/linkwhole/all.T [new file with mode: 0644]
testsuite/tests/driver/linkwhole/linkwhole.stdout [new file with mode: 0644]