Closed Bug 579494 Opened 14 years ago Closed 11 years ago

Autogenerate toolkit-makefiles.sh

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 784841

People

(Reporter: justin.lebar+bug, Unassigned)

Details

Spun off from bug 571989 comment 24.

Zack Weinberg (:zwol) wrote:

> Couldn't we run (the equivalent of) 'find . -name Makefile.in' at the end of
> configure, rather than having this list that has to be kept up to date
> manually?  It presumably does not matter if a few Makefiles get generated even
> though they won't be used.  I suppose we would need a blacklist for things like
> js and nspr that have their own configure scripts, but that would be easier to
> keep up to date.
This should be doable.  Patches welcome ;-)
The only downside is that "find . -name Makefile.in" is always going to take longer than hardcoding a list of Makefiles. (It took almost 30 seconds the first time on my Linux machine, but only about 0.3s afterwards.)
What slowness is toolkit-makefiles.sh actually a horrible hackaround for, and how does that slowness compare to find's slowness?
AIUI, it's supposedly faster than asking Make to realize every Makefile needs to be generated and run the rules to generate them while building. (via: http://mxr.mozilla.org/mozilla-central/source/config/rules.mk#1634 )
Yes, rebuilding each makefile individually spawns a bunch of perl processes which are horribly slow to launch (especially on Windows).
The makefiles.sh files went away with bug 784841.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.