Optimise the %.hi : %.o rule
authorSimon Marlow <marlowsd@gmail.com>
Tue, 23 Jun 2009 12:49:01 +0000 (12:49 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 23 Jun 2009 12:49:01 +0000 (12:49 +0000)
commit0fb9ad3a5e363ec2c7676d91037678ee33f496b7
tree7922f4561ef932e746c99ece1dd4fd8a7e6066cf
parentc2a8617aad5a6fb29e4857771f785e5d5fe68b54
Optimise the %.hi : %.o rule
Previously this rule had a sanity check for the existence of the .o
file.  However, the sanity check is expensive, especially on Windows,
because it requires spawning a shell.  So now we use an empty command
here.

This change reduced the time to do 'make' in an up-to-date tree on
Windows from 33s to 16s for me.  (the actual saving depends on how
much rebuilding you've been doing, and how many .hi files are older
than their .o files).

The comments in this file now describe various versions of the rule
that don't work.
rules/hi-rule.mk