Closed Bug 939580 Opened 11 years ago Closed 11 years ago

Create unified files based on the absolute path of the original source files

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla28

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 939571 is an example of where we need this.
This is necessary for places where we have a UNIFIED_SOURCES variable pointing to a file such as Foo.cpp, and we also have a LOCAL_INCLUDES variable pointing to another directory containing another version of Foo.cpp. Without this patch, we end up #including the second file instead of the first one.
Assignee: nobody → ehsan
Blocks: 939571
Attachment #8333536 - Flags: review?(mh+mozilla)
Blocks: unified
Comment on attachment 8333536 [details] [diff] [review] Create unified files based on the absolute path of the original source files I think I'd rather see LOCAL_INCLUDES go after -I$(srcdir) and -I. in config/config.mk. Could you try that instead?
Attachment #8333536 - Flags: review?(mh+mozilla)
Attachment #8333536 - Attachment is obsolete: true
Attachment #8334473 - Flags: review?(mh+mozilla)
Attachment #8334473 - Flags: review?(gps)
The dom/base and dom/worker hunks are needed because that code was basically relying on the existing order of LOCAL_INCLUDES to pick the Navigator.h in dom/base.
Blocks: 940191
Comment on attachment 8334473 [details] [diff] [review] #include LOCAL_INCLUDES after the source dir and current dir includes; r=glandium Review of attachment 8334473 [details] [diff] [review]: ----------------------------------------------------------------- This seems fine. As long as LOCAL_INCLUDES are early enough to intercept most includes (I think some people rely on this to inject wrappers), I think we'll be fine. I can't imagine someone wanting to override files defined in the current directory. I don't think you need glandium's additional review here. But I'll defer to you.
Attachment #8334473 - Flags: review?(gps) → review+
Comment on attachment 8334473 [details] [diff] [review] #include LOCAL_INCLUDES after the source dir and current dir includes; r=glandium Thanks for the review!
Attachment #8334473 - Flags: review?(mh+mozilla)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Depends on: 961757
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: