Opened 15 years ago

Last modified 4 months ago

#618 new task (None)

Dependency caching in ghc --make

Reported by: simonmar Owned by:
Priority: normal Milestone:
Component: Compiler Version: None
Keywords: Cc: rodlogic, ezyang
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case: N/A
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by igloo)

ghc --make should cache dependencies between runs, somehow.

Change History (8)

comment:1 Changed 10 years ago by simonmar

  • Architecture set to Unknown
  • Description modified (diff)
  • difficulty set to Moderate (1 day)
  • Operating System set to Unknown

comment:2 Changed 10 years ago by igloo

  • Description modified (diff)
  • Milestone set to 6.6.1
  • Test Case set to N/A

comment:3 Changed 9 years ago by simonmar

  • Milestone changed from 6.6.1 to _|_

comment:4 Changed 8 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:5 Changed 8 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple

comment:6 Changed 6 years ago by simonmar

  • difficulty changed from Moderate (1 day) to Moderate (less than a day)

comment:7 Changed 17 months ago by rodlogic

  • Cc rodlogic added
  • Type of failure set to None/Unknown

comment:8 Changed 4 months ago by ezyang

  • Cc ezyang added

ghc-shake is a compiler plugin which is comparable to ghc --make, but caches dependencies (through Shake). Here's an implementation that works with 7.10 (with frontend plugins; that patch hasn't been backported to 7.10) https://github.com/ezyang/ghc-shake

(The approach here is not so useful for ghc --make, probably, because shake maintains a separate file cache for information like dependencies.)

Last edited 4 months ago by ezyang (previous) (diff)
Note: See TracTickets for help on using tickets.