diff --git a/site/source/docs/tools_reference/settings_reference.rst b/site/source/docs/tools_reference/settings_reference.rst index dae60df34ed2b..d3df18d195513 100644 --- a/site/source/docs/tools_reference/settings_reference.rst +++ b/site/source/docs/tools_reference/settings_reference.rst @@ -427,6 +427,8 @@ function call that uses DataView to enforce LE byte order for HEAP buffer; This makes generated JavaScript run on BE as well as LE machines. (If 0, only LE systems are supported). Does not affect generated wasm. +.. note:: This is an experimental setting + Default value: false .. _safe_heap: diff --git a/src/settings.js b/src/settings.js index 92dfd20b2a750..32c6e49d55e89 100644 --- a/src/settings.js +++ b/src/settings.js @@ -317,6 +317,7 @@ var INLINING_LIMIT = false; // function call that uses DataView to enforce LE byte order for HEAP buffer; // This makes generated JavaScript run on BE as well as LE machines. (If 0, only // LE systems are supported). Does not affect generated wasm. +// [experimental] var SUPPORT_BIG_ENDIAN = false; // Check each write to the heap, for example, this will give a clear diff --git a/tools/link.py b/tools/link.py index ccaac6bae8106..d9091a22f287c 100644 --- a/tools/link.py +++ b/tools/link.py @@ -840,6 +840,9 @@ def phase_linker_setup(options, linker_args): # noqa: C901, PLR0912, PLR0915 if settings.GROWABLE_ARRAYBUFFERS: diagnostics.warning('experimental', '-sGROWABLE_ARRAYBUFFERS is still experimental and not yet supported in browsers') + if settings.SUPPORT_BIG_ENDIAN: + diagnostics.warning('experimental', '-sSUPPORT_BIG_ENDIAN is experimental, not all features are fully supported.') + if settings.WASM_ESM_INTEGRATION: diagnostics.warning('experimental', '-sWASM_ESM_INTEGRATION is still experimental and not yet supported in browsers') default_setting('MODULARIZE', 'instance')