Skip to content

GHC --make switch does not set file timestamp correctly

I am using GHC --make in bigger Makefile setup. I am having problems that timestamp on output files are not always set correctly (to newer date than input files) so Makefile reruns GHC compiling even if there is not change. Again and again.

I have added simple touch of output file after every GHC call and problems vanished.

Trac metadata
Trac field Value
Version 6.12.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC mmitar@gmail.com
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information