Closed
Bug 757828
Opened 13 years ago
Closed 12 years ago
makefiles: move export logic into target_export.mk - batch #1
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla16
People
(Reporter: joey, Assigned: joey)
References
Details
Attachments
(1 file, 2 obsolete files)
6.72 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → joey
Assignee | ||
Comment 2•13 years ago
|
||
Comment on attachment 626443 [details] [diff] [review]
move export logic into target_export.mk - batch #1
bridge building: moved "Rule to create list of libraries for final link" block out of rules.mk and into a named export- target in config/makefiles/targets_export.mk.
Preserve existing target location within rules.mk for now.
export:: export-gen-final-lib-link-list
Including target_export.mk will define lib-link-list logic in a new location so avoid breaking existing functionality until it can be asserted the change will not alter behavior.
A simple standalone unit test was added to verify link-list target behavior. Room for improvement in verifying target behavior but this will be a good start.
Attachment #626443 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 3•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #626443 -
Attachment is obsolete: true
Attachment #626443 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 4•13 years ago
|
||
Comment on attachment 626455 [details] [diff] [review]
move export logic into target_export.mk - batch #1
same patch as before but include unit test sources this time.
Attachment #626455 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 5•13 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #626455 -
Flags: review?(ted.mielczarek) → review?
Assignee | ||
Comment 6•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Attachment #626455 -
Attachment is obsolete: true
Attachment #626455 -
Flags: review?
Assignee | ||
Comment 7•12 years ago
|
||
Comment on attachment 628760 [details] [diff] [review]
move export logic into target_export.mk - batch #1
Try job: https://tbpl.mozilla.org/?tree=Try&rev=815040101f48
Refresh patch.
Same patch as before, move more libs targets into the target_libs.mk makefile and setup unit tests to begin verifying behavior.
Attachment #628760 -
Flags: review?(mh+mozilla)
Updated•12 years ago
|
Attachment #628760 -
Flags: review?(mh+mozilla) → review+
Comment 8•12 years ago
|
||
Comment on attachment 628760 [details] [diff] [review]
move export logic into target_export.mk - batch #1
Review of attachment 628760 [details] [diff] [review]:
-----------------------------------------------------------------
::: config/rules.mk
@@ +625,5 @@
>
> include $(topsrcdir)/config/makefiles/target_export.mk
> include $(topsrcdir)/config/makefiles/target_tools.mk
>
> +export:: export-gen-final-lib-link-list
This should be done in target_export.mk.
Assignee | ||
Comment 9•12 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #8)
> Comment on attachment 628760 [details] [diff] [review]
> move export logic into target_export.mk - batch #1
>
> Review of attachment 628760 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: config/rules.mk
> @@ +625,5 @@
> >
> > include $(topsrcdir)/config/makefiles/target_export.mk
> > include $(topsrcdir)/config/makefiles/target_tools.mk
> >
> > +export:: export-gen-final-lib-link-list
>
> This should be done in target_export.mk.
The target was added {at least temporarily until deployment} to preserve the order export targets are being processed in when rules.mk is parsed.
If all of the target logic is migrated in a single pass and problems arise it would not be clear if the logic or target ordering were a factor.
Assignee | ||
Comment 10•12 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #8)
> Comment on attachment 628760 [details] [diff] [review]
> move export logic into target_export.mk - batch #1
>
> Review of attachment 628760 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: config/rules.mk
> @@ +625,5 @@
> >
> > include $(topsrcdir)/config/makefiles/target_export.mk
> > include $(topsrcdir)/config/makefiles/target_tools.mk
> >
> > +export:: export-gen-final-lib-link-list
>
> This should be done in target_export.mk.
Would adding a 'todo' comment documenting the transient usage be enough to cover this ?
Comment 11•12 years ago
|
||
(In reply to Joey Armstrong [:joey] from comment #9)
> > > include $(topsrcdir)/config/makefiles/target_export.mk
The export targets are there, right?
> > > include $(topsrcdir)/config/makefiles/target_tools.mk
We don't expect export targets to be in that file, right?
> > > +export:: export-gen-final-lib-link-list
Then why can't this be last in target_export.mk, since it just follows it ?
Assignee | ||
Comment 12•12 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #11)
> (In reply to Joey Armstrong [:joey] from comment #9)
> > > > include $(topsrcdir)/config/makefiles/target_export.mk
>
> The export targets are there, right?
>
> > > > include $(topsrcdir)/config/makefiles/target_tools.mk
>
> We don't expect export targets to be in that file, right?
>
> > > > +export:: export-gen-final-lib-link-list
>
> Then why can't this be last in target_export.mk, since it just follows it ?
Well yes we can, this target is a bit of a special case
Assignee | ||
Comment 13•12 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #11)
> (In reply to Joey Armstrong [:joey] from comment #9)
> > > > include $(topsrcdir)/config/makefiles/target_export.mk
>
> The export targets are there, right?
>
> > > > include $(topsrcdir)/config/makefiles/target_tools.mk
>
> We don't expect export targets to be in that file, right?
>
> > > > +export:: export-gen-final-lib-link-list
>
> Then why can't this be last in target_export.mk, since it just follows it ?
Well yes we can, this target was a bit of a special case with the definition near the inclusion so it should be safe. There are a few other targets in rules.mk that we should use a temporary bridge with until the logic has migrated and settled.
Assignee | ||
Comment 14•12 years ago
|
||
Inbound push: https://hg.mozilla.org/integration/mozilla-inbound/rev/31fa915e4a92
moved export:: target from rules.mk into makefiles/target_export.mk
Comment 15•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•