[commit: ghc] master: Add thin library support to Windows too (5cee88d)

git at git.haskell.org git at git.haskell.org
Mon Jun 13 11:31:42 UTC 2016


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

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

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

commit 5cee88d766723929f789ffcd2ef24d8b5ef62a16
Author: Tamar Christina <tamar at zhox.com>
Date:   Mon Jun 13 13:29:17 2016 +0200

    Add thin library support to Windows too
    
    Summary:
    Code already existed in the RTS to add thin library support for non-Windows
    operating systems. This adds it to Windows as well.
    
    ar thin libraries have the exact same format as normal archives except they
    have a different magic string and they don't copy the object files into the
    archive.
    
    Instead each header entry points to the location of the object file on disk.
    This is useful when a library is only created to satisfy a compile time dependency
    instead of to be distributed. This saves the time required for copying.
    
    Test Plan: ./validate and new test T11788
    
    Reviewers: austin, bgamari, simonmar, erikd
    
    Reviewed By: bgamari, simonmar
    
    Subscribers: thomie, #ghc_windows_task_force
    
    Differential Revision: https://phabricator.haskell.org/D2323
    
    GHC Trac Issues: #11788


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

5cee88d766723929f789ffcd2ef24d8b5ef62a16
 rts/Linker.c                                       | 151 ++++++++++++---------
 testsuite/tests/rts/Makefile                       |   6 +
 testsuite/tests/rts/{T11223/foo.c => T11788.c}     |   0
 testsuite/tests/rts/{T11223/foo.hs => T11788.hs}   |   0
 .../T11223_simple_link.stdout => T11788.stdout}    |   0
 testsuite/tests/rts/all.T                          |   3 +
 6 files changed, 99 insertions(+), 61 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 5cee88d766723929f789ffcd2ef24d8b5ef62a16


More information about the ghc-commits mailing list