Closed Bug 903341 Opened 11 years ago Closed 11 years ago

Running configure with no configure.in change overwrites gyp generated Makefiles

Categories

(Firefox Build System :: General, defect)

24 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla26

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #903321 +++

Namely, at least $objdir/Makefile and $objdir/js/src/Makefile. There's also media/webrtc and media/mtransport Makefiles, but that comes from gyp, so that would be a separate bug.

This makes us rebuild all of js, and a lot of tests that link against js_static.
This gets me, after bug 903321, from 858 to 124 files rebuilt after touch configure.in.
Attachment #788053 - Flags: review?(gps)
Like the second iteration of bug 903321, this avoids makefiles being regenerated each time when the python script changes.
Attachment #788168 - Flags: review?(gps)
Attachment #788053 - Attachment is obsolete: true
Attachment #788053 - Flags: review?(gps)
Comment on attachment 788168 [details] [diff] [review]
Avoid gyp overwriting Makefiles when they wouldn't be modified

Review of attachment 788168 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good!
Attachment #788168 - Flags: review?(gps) → review+
I was confused by your comment 0, but it's just from the bug you cloned from. If the gyp->Makefile code was overwriting $objdir/Makefile I was going to be very worried!

I think I looked at doing this, but didn't because of the weird dependency problems (similar to what we have for moz.build). If, for example, you have:
foo.gyp -->
  $objdir/foo/project_one
  $objdir/foo/project_two

and foo.gyp has changed, but only in the project_two bits, then running "make" in project_one could result in $objdir/foo/project_one/Makefile not being changed, which might result in an infinite dependency loop.
https://hg.mozilla.org/mozilla-central/rev/6ddea989dcb9
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: