arvindm95 / unladen-swallow

Automatically exported from code.google.com/p/unladen-swallow
Other
0 stars 0 forks source link

Re-make-ing rebuilds too much #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Running make twice in a row takes forever, even if you didn't change
anything: make wants to rebuild Python/llvm_inline_functions.bc, which
cascades into causing the python binary and libpython to both be relinked.

A simple no-op make takes almost 30 seconds, all to do nothing.

Original issue reported on code.google.com by collinw on 28 May 2009 at 4:07

GoogleCodeExporter commented 8 years ago

Original comment by collinw on 29 May 2009 at 4:02

GoogleCodeExporter commented 8 years ago
I think the problem is that llvm_inline_funcitons.bc depends on llvm_tools 
which is a
phony target and is always considered to not be up to date.  Looking through 
the make
manual (linked below), it seems the solution is to touch an empty file of the 
same
name as the target to record the timestamp of the last build.  That might also 
help
obviate the need for --with-llvm.  The only drawback is that it pollutes your
checkout with two lame files called 'llvm' and 'llvm_tools'.

http://www.gnu.org/software/automake/manual/make/Empty-Targets.html#Empty-Target
s

Original comment by reid.kle...@gmail.com on 5 Jun 2009 at 6:58

GoogleCodeExporter commented 8 years ago
Extra files is no real worry; we'd just list them in svn:ignore.

I don't think this obviates --with-llvm, since that's still useful for 
from-scratch
builds or just after a make clean.

Original comment by collinw on 5 Jun 2009 at 7:00

GoogleCodeExporter commented 8 years ago
Fixed in r613. Thanks, Reid!

Original comment by collinw on 5 Jun 2009 at 10:56