Bug 1865597 - Add error checking when initializing parallel marking and disable on...
[gecko.git] / js / src / js-config.mozbuild
blobf7ff4c97504801ba2e241c650f2d75780bb71800
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 # Some huge-mapping optimization instead of bounds checks on supported
8 # platforms.
9 if CONFIG['JS_CODEGEN_X64'] or CONFIG['JS_CODEGEN_ARM64'] or CONFIG['JS_CODEGEN_RISCV64']:
10     DEFINES['WASM_SUPPORTS_HUGE_MEMORY'] = True
12 # Enables CACHEIR_LOGS to diagnose IC coverage, and
13 # Structured spewer for diagnostics
14 if CONFIG['MOZ_DEBUG'] or CONFIG['NIGHTLY_BUILD']:
15     DEFINES['JS_CACHEIR_SPEW'] = True
16     DEFINES['JS_STRUCTURED_SPEW'] = True
18 # CTypes
19 if CONFIG['JS_HAS_CTYPES']:
20     DEFINES['JS_HAS_CTYPES'] = True
21     if not CONFIG['MOZ_SYSTEM_FFI']:
22         DEFINES['FFI_BUILDING'] = True