[commit: ghc] master: Add -fwhole-archive-hs-libs (a6874e5)

git at git.haskell.org git at git.haskell.org
Fri Mar 3 00:58:35 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a6874e546294173c166859769dd8054887a6ded7/ghc

>---------------------------------------------------------------

commit a6874e546294173c166859769dd8054887a6ded7
Author: Simon Marlow <marlowsd at gmail.com>
Date:   Thu Mar 2 16:17:12 2017 -0500

    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


>---------------------------------------------------------------

a6874e546294173c166859769dd8054887a6ded7
 compiler/main/DriverPipeline.hs                   | 26 ++++++++++---
 compiler/main/DynFlags.hs                         |  4 +-
 docs/users_guide/phases.rst                       | 15 ++++++++
 testsuite/tests/driver/linkwhole/Handles.hs       | 18 +++++++++
 testsuite/tests/driver/linkwhole/Main.hs          | 46 +++++++++++++++++++++++
 testsuite/tests/driver/linkwhole/Makefile         | 20 ++++++++++
 testsuite/tests/driver/linkwhole/MyCode.hs        |  6 +++
 testsuite/tests/driver/linkwhole/Types.hs         | 13 +++++++
 testsuite/tests/driver/linkwhole/all.T            |  2 +
 testsuite/tests/driver/linkwhole/linkwhole.stdout |  2 +
 10 files changed, 146 insertions(+), 6 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc a6874e546294173c166859769dd8054887a6ded7


More information about the ghc-commits mailing list