Changes between Initial Version and Version 1 of Ticket #10161, comment 4


Ignore:
Timestamp:
Sep 3, 2016 5:19:56 AM (23 months ago)
Author:
ezyang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10161, comment 4

    initial v1  
    1 There are a few ways to go about fixing this, but we have to be careful to keep GHC's compilation results deterministic.
     1~~There are a few ways to go about fixing this, but we have to be careful to keep GHC's compilation results deterministic.
    22
    3 One consequence of this is that we CANNOT store the paths that were linked to produce the final executable in the executable: we don't want to bake those paths into the build product. But then how does GHC know what to query in order to find out if linking is necessary?
     3~~One consequence of this is that we CANNOT store the paths that were linked to produce the final executable in the executable: we don't want to bake those paths into the build product. But then how does GHC know what to query in order to find out if linking is necessary?
    44
    5 My conclusion is that GHC has to (1) somehow run ld in a dry run mode (I could see no flag which actually implemented this) or (2) reimplement ld's library finding logic ourselves, so that we can guess what the actual files we're going to depend on are and then make a linking decision.
     5~~My conclusion is that GHC has to (1) somehow run ld in a dry run mode (I could see no flag which actually implemented this) or (2) reimplement ld's library finding logic ourselves, so that we can guess what the actual files we're going to depend on are and then make a linking decision.