[GHC] #11788: Enable Thin Library support for the Runtime linker on Windows.
#11788: Enable Thin Library support for the Runtime linker on Windows. -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: feature | Status: new request | Priority: normal | Milestone: 8.2.1 Component: Runtime | Version: 7.10.3 System (Linker) | Keywords: | Operating System: Windows Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The runtime linker currently has an `#ifdef` that removes support for AR's thin archives for Windows. This because all the code is based on `char*` and Windows would require `wchar_t`. Using the abstraction of `pathchar` this can be enabled for Windows and remove another `#ifdef` from the RTS. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11788> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11788: Enable Thin Library support for the Runtime linker on Windows. -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: feature request | Status: new Priority: normal | Milestone: 8.2.1 Component: Runtime System | Version: 7.10.3 (Linker) | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Some test have already been defined in `testsuite\tests\rts\T11223\all.T` but they may need to be modified slightly. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11788#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11788: Enable Thin Library support for the Runtime linker on Windows. -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: feature request | Status: new Priority: normal | Milestone: 8.2.1 Component: Runtime System | Version: 7.10.3 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * os: Windows => Unknown/Multiple -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11788#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11788: Enable Thin Library support for the Runtime linker on Windows. -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: feature request | Status: new Priority: normal | Milestone: 8.2.1 Component: Runtime System | Version: 7.10.3 (Linker) | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * os: Unknown/Multiple => Windows -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11788#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11788: Enable Thin Library support for the Runtime linker on Windows. -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: feature request | Status: patch Priority: normal | Milestone: 8.2.1 Component: Runtime System | Version: 7.10.3 (Linker) | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: T11788 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2323 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * testcase: => T11788 * status: new => patch * differential: => Phab:D2323 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11788#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11788: Enable Thin Library support for the Runtime linker on Windows. -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: feature request | Status: patch Priority: normal | Milestone: 8.2.1 Component: Runtime System | Version: 7.10.3 (Linker) | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: T11788 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2323 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Tamar Christina <tamar@…>): In [changeset:"5cee88d766723929f789ffcd2ef24d8b5ef62a16/ghc" 5cee88d7/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="5cee88d766723929f789ffcd2ef24d8b5ef62a16" 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 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11788#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11788: Enable Thin Library support for the Runtime linker on Windows. -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: Runtime System | Version: 7.10.3 (Linker) | Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: T11788 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2323 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: patch => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11788#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC