Closed Bug 1699398 Opened 4 years ago Closed 4 years ago

Fix build failures resulting in "use of undeclared identifier 'forceWasmIon'" in obscure build configurations

Categories

(Core :: JavaScript: WebAssembly, defect)

defect

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- fixed

People

(Reporter: jseward, Assigned: jseward)

Details

Attachments

(1 file)

Following the landing of wasm-via-Ion on arm64 (bug 1678097), some obscure
build configurations now break the build due to incorrect target-selection
ifdeffery. This has been observed to happen for x86_64-linux when the following
are specified together:

ac_add_options --enable-cranelift
ac_add_options --enable-js-shell

Following the landing of wasm-via-Ion on arm64 (bug 1678097), some obscure
build configurations now break the build due to incorrect target-selection
ifdeffery. This has been observed to happen for x86_64-linux when the
following are specified together (in a browser build):

ac_add_options --enable-cranelift
ac_add_options --enable-js-shell

In particular, forceWasmIon is declared in js.cpp and is guarded by
JS_CODEGEN_ARM64. But there were later some uses of it guarded by
ENABLE_WASM_CRANELIFT. In effect this incorrectly assumes that
JS_CODEGEN_ARM64 and ENABLE_WASM_CRANELIFT are both either defined or
undefined. But that's not correct, (eg) for a build on x86_64-linux that is
configured --enable-cranelift.

This patch fixes that by guarding such use points additionally with
JS_CODEGEN_ARM64, so as to ensure the sets of configurations that read or
write forceWasmIon are a subset of the configurations that declare it.

Assignee: nobody → jseward
Status: NEW → ASSIGNED
Pushed by jseward@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7d90e800cbd0 Fix build failures resulting in "use of undeclared identifier 'forceWasmIon'" in obscure build configurations. r=lth.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: