Opened 11 years ago

Closed 9 years ago

#3326 closed bug (duplicate)

the recompilation checker should take CPP flags into account

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


The C preprocessor can be used (or maybe abused) to provide different configurations of the same program. I often build programs with a command like

ghc --make -DOPTION1 -DOPTION3 main.hs

Now if I try to rebuild with different CPP flags, ghc won't recompile anything, since no source file changed (however, they become different after the CPP pass).

Ticket #437 is loosely related.

Change History (5)

comment:1 Changed 11 years ago by igloo

difficulty: Unknown
Milestone: 6.12.1

comment:2 Changed 10 years ago by igloo

Type of failure: None/Unknown

comment:3 Changed 9 years ago by igloo


comment:4 Changed 9 years ago by igloo


comment:5 Changed 9 years ago by simonmar

Resolution: duplicate
Status: newclosed

I think this is subsumed by #437

Note: See TracTickets for help on using tickets.