Closed Bug 973144 Opened 10 years ago Closed 10 years ago

Add the UNDEFINES variable to moz.build

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla30

People

(Reporter: ehsan.akhgari, Assigned: glandium)

References

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Assignee: nobody → ehsan
Attachment #8376647 - Flags: review?(mshal)
Attachment #8376647 - Flags: review?(mh+mozilla)
Attachment #8376647 - Flags: review?(gps)
If there really only that place with -U flags, i'd rather fix the code than add a moz.build variable for that. Because when you look at it, it's completely weird. Why need to undefine platform variables for those very platforms?
Attachment #8376647 - Flags: review?(mshal)
Attachment #8376647 - Flags: review?(mh+mozilla)
Attachment #8376647 - Flags: review?(gps)
Attachment #8376647 - Flags: review-
What are those undefines needed for at all?
Flags: needinfo?(rjesup)
FWIW I don't know why they are needed.
So after checking on irc with jesup and testing on mac, it turns out the sctp code is a mess that *does* require those undefines (not all of them, though). But for so few, I'd rather not add a new specialized moz.build variable.

Considering DEFINES['FOO'] = True means -DFOO (without =something), and considering DEFINES['FOO'] = False currently raises an exception, i think it makes sense to just use DEFINES['FOO'] = False to mean -UFOO.

Note this doesn't cover moving the -U flags from Makefile.in.
Attachment #8378772 - Flags: review?(gps)
Assignee: ehsan → mh+mozilla
Status: NEW → ASSIGNED
Flags: needinfo?(rjesup)
Attachment #8376647 - Attachment is obsolete: true
Attachment #8378772 - Flags: review?(gps) → review+
Blocks: 976443
https://hg.mozilla.org/mozilla-central/rev/eb02c9e3db0a
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
FWIW this syntax is pretty terrible, and it will confuse anyone who comes across it.  I think this was a mistake.
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: