Closed
Bug 1235738
Opened 7 years ago
Closed 7 years ago
Move MOZ_DEBUG_DEFINES to build frontend
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox46 fixed)
RESOLVED
FIXED
mozilla46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(2 files)
15.57 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
4.71 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•7 years ago
|
||
MOZ_DEBUG_DEFINES are essentially defines used everywhere. So treat them as feeding the initial value for DEFINES in each moz.build sandbox. This allows the kind overrides that was done in the past by resetting MOZ_DEBUG_DEFINES in Makefiles.
Attachment #8702821 -
Flags: review?(gps)
Assignee | ||
Comment 2•7 years ago
|
||
Now that it's not directly used in command lines, it can just become a list of symbols that ought to be defined. This simplifies all the uses of it.
Attachment #8702822 -
Flags: review?(gps)
Comment 3•7 years ago
|
||
Comment on attachment 8702821 [details] [diff] [review] Move MOZ_DEBUG_DEFINES to build frontend Review of attachment 8702821 [details] [diff] [review]: ----------------------------------------------------------------- ::: python/mozbuild/mozbuild/frontend/context.py @@ +281,5 @@ > self._sandbox().pop_subcontext(self) > > > +class InitializedDefines(ContextDerivedValue, OrderedDict): > + def __init__(self, context, value={}): Using {} as the default value is dangerous. Use None and then "values = values or {}"
Attachment #8702821 -
Flags: review?(gps) → review+
Comment 4•7 years ago
|
||
Comment on attachment 8702822 [details] [diff] [review] Simplify MOZ_DEBUG_DEFINES Review of attachment 8702822 [details] [diff] [review]: ----------------------------------------------------------------- Nice.
Attachment #8702822 -
Flags: review?(gps) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/3a68ebf32f83 https://hg.mozilla.org/integration/mozilla-inbound/rev/51b8dcf42ee0
Assignee | ||
Comment 7•7 years ago
|
||
(In reply to Pulsebot from comment #6) > https://hg.mozilla.org/integration/mozilla-inbound/rev/5a6ef68947e7 As mentioned in the commit message there, it turns out we weren't passing debug flags in HOST_C{,XX}FLAGS before. I'll file a followup for that.
Comment 8•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3a68ebf32f83 https://hg.mozilla.org/mozilla-central/rev/51b8dcf42ee0 https://hg.mozilla.org/mozilla-central/rev/5a6ef68947e7
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Updated•5 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•