Closed Bug 463172 Opened 16 years ago Closed 16 years ago

js/src/configure needs --disable-jit

Categories

(Firefox Build System :: General, defect)

Other Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jorendorff, Assigned: benjamin)

References

Details

(Keywords: fixed1.9.1)

Attachments

(1 file, 1 obsolete file)

The old Makefile.ref system had a DISABLE_JIT make variable that would turn off -DJS_TRACER and -DFEATURE_NANOJIT.  This was useful to check whether changes will actually build on platforms where the JIT isn't supported (like Mac PPC).
Assignee: general → nobody
Component: JavaScript Engine → Build Config
QA Contact: general → build-config
:-(  I recently checked in code that broke non-JIT platforms; if this feature existed I would compile stuff under --disable-jit before checking in as a matter of habit, as I used to do under Makefile.ref.

Is there a workaround?
Assignee: nobody → benjamin
A workaround is to use:  make ENABLE_JIT=
Attached patch Lightly tested, rev. 1 (obsolete) — Splinter Review
This is lightly tested locally, and I've submitted it to the tryserver as well.
Attachment #356003 - Flags: review?(ted.mielczarek)
Comment on attachment 356003 [details] [diff] [review]
Lightly tested, rev. 1

As discussed on IRC, I'd like to see the stuff in JIT_DEFINES just get AC_DEFINEd in configure, instead of requiring the makefiles to put it in DEFINES. Otherwise looks good.
Attachment #356003 - Flags: review?(ted.mielczarek) → review-
Attachment #356003 - Attachment is obsolete: true
Attachment #356534 - Flags: review?(ted.mielczarek)
Comment on attachment 356534 [details] [diff] [review]
--disable-jit in configure, rev. 2

+    JIT_DEFINES='-DAVMPLUS_IA32'

Looks like you're no longer using JIT_DEFINES. Just remove those two lines?

Looks good otherwise.
Attachment #356534 - Flags: review?(ted.mielczarek) → review+
http://hg.mozilla.org/mozilla-central/rev/87bf34282f13
and a followup, because this block needs to be outside SKIP_COMPILER_CHECKS:
http://hg.mozilla.org/mozilla-central/rev/98e0b6b69e05
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment on attachment 356534 [details] [diff] [review]
--disable-jit in configure, rev. 2

need to let this bake briefly, but should take this on 1.9.1
Attachment #356534 - Flags: approval1.9.1?
Depends on: 474020
What should we do on OS/2 now? Before the patch here we were covered by AVMPLUS_IA32 and it seemed to work well... Now this breaks us:
   "configure: error: Unrecognized nanojit platform"
Sorry, was too much in a hurry to see that there's already bug 474020. Please ignore comment 9.
Comment on attachment 356534 [details] [diff] [review]
--disable-jit in configure, rev. 2

a191=beltzner
Attachment #356534 - Flags: approval1.9.1? → approval1.9.1+
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/6b18f4ef1837 which contains the OS/2 and sparc followups as well as the initial bustage fix.
Keywords: fixed1.9.1
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: