Note: There are a few cases of duplicates in user autocompletion which are being worked on.

Clean up IDL Directory Rules in rules.mk

RESOLVED FIXED in mozilla9

Status

()

Core
Build Config
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: gps, Assigned: gps)

Tracking

(Blocks: 1 bug)

Trunk
mozilla9
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 2 obsolete attachments)

(Assignee)

Description

6 years ago
Created attachment 554512 [details] [diff] [review]
Remove double colon and redundancy of $(IDL_DIR), v1

Currently, the $(IDL_DIR) target in rules.mk has the following issues:

1) It is defined as a double colon rule, so it gets executed every single time
2) It is defined twice

The attached patch converts it to a regular rule and removes an inner definition. I believe the remaining definition is always in an outer scope and is thus always defined to the bits that need it. Although, the conditional statements in this part of rules.mk are nested pretty deep, so I could be wrong.

I also believe everything writing into $(IDL_DIR) has $(IDL_DIR) as a prerequisite, so removing the double colon should be safe.

I've done the following to verify the change:

* Built w/ make from empty objdir
* Rebuilt a subcomponent w/ make that used to always nsinstall $(IDL_DIR) and verified it didn't do this any more

I'm not sure how much this improves build times by, but it should be greater than 0.
(Assignee)

Updated

6 years ago
Attachment #554512 - Flags: review?(khuey)
(Assignee)

Comment 1

6 years ago
Created attachment 554520 [details] [diff] [review]
Remove double colon and redundancy of $(IDL_DIR), v2

Added missing identical change to JS's rules.mk and added bug number to summary.
Assignee: nobody → gps
Attachment #554512 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #554512 - Flags: review?(khuey)
Attachment #554520 - Flags: review?(khuey)
(Assignee)

Updated

6 years ago
Blocks: 680369

Updated

6 years ago
OS: Windows 2000 → All
Version: unspecified → Trunk
Comment on attachment 554520 [details] [diff] [review]
Remove double colon and redundancy of $(IDL_DIR), v2

Can we drop the comment above the $(IDL_DIR) rule we're keeping.  I don't think that's been accurate in the better part of a decade ...
Attachment #554520 - Flags: review?(khuey) → review+
(Assignee)

Comment 3

6 years ago
Created attachment 554901 [details] [diff] [review]
Remove double colon and redundancy of $(IDL_DIR), v3

This is the same patch that was r+ by khuey except the outdated comment has been removed, per comment from khuey.
Attachment #554520 - Attachment is obsolete: true
(Assignee)

Updated

6 years ago
Keywords: checkin-needed

Comment 4

6 years ago
http://hg.mozilla.org/integration/mozilla-inbound/rev/1ee70d6bb2c8
Flags: in-testsuite-
Keywords: checkin-needed
Target Milestone: --- → mozilla9
http://hg.mozilla.org/mozilla-central/rev/1ee70d6bb2c8
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.