Closed Bug 781171 Opened 13 years ago Closed 12 years ago

Remove MOZ_SIZE_OF_TYPE

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla27

People

(Reporter: espindola, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

This macro causes problem for doing universal builds. It should be replace with #ifdefs in header files.
The obvious place for hardcoding what we've been testing for is jscpucfg.h: http://mxr.mozilla.org/mozilla-central/source/js/src/jscpucfg.h
I'd rather jscpucfg.h didn't exist, ideally, and it'd be nice to discourage adding to or changing it. I once started work on a mfbt/CPU.h header, sitting in an mq now, containing only mozilla::PointerSize at the time. Possibly stuff like this should be moved into that header as well. (I'm not sure if I ever filed a bug for the work, and I'm not sure I actually finished it, either.) Possibly I could pick that up again now, although I need to strategically tunnel out of a month's backlog of bugmail and other such things before I do anything else. :-)
Depends on: 924391, 924392, 924393
Depends on: 925110, 924891
Depends on: 925729
Depends on: 925733
Depends on: 925879
Applying this is not a good idea right now, as there are dependent bugs outstanding, but I promise to apply them all in the right order.
Attachment #816036 - Flags: review?(mh+mozilla)
Comment on attachment 816036 [details] [diff] [review] delete JS_BYTES_PER_WORD/JS_BITS_PER_WORD from configure.in Review of attachment 816036 [details] [diff] [review]: ----------------------------------------------------------------- You need to update js/src/aclocal.m4 too.
Attachment #816036 - Flags: review?(mh+mozilla) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
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: