Skip to content

Commit 8e3f33c

Browse files
committed
Fix SUPPORT_BIG_ENDIAN settings
Fixes: emscripten-core#21751
1 parent 9b67335 commit 8e3f33c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/runtime_shared.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
function updateMemoryViews() {
3232
var b = wasmMemory.buffer;
3333
#if SUPPORT_BIG_ENDIAN
34-
{{{ maybeExport('HEAP_DATA_VIEW') }}} HEAP_DATA_VIEW = new DataView(b);
34+
{{{ maybeExportHeap('HEAP_DATA_VIEW') }}} HEAP_DATA_VIEW = new DataView(b);
3535
#endif
3636
{{{ maybeExportHeap('HEAP8') }}}HEAP8 = new Int8Array(b);
3737
{{{ maybeExportHeap('HEAP16') }}}HEAP16 = new Int16Array(b);

test/test_other.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14657,3 +14657,6 @@ def test_mimalloc_headers(self):
1465714657
}
1465814658
'''
1465914659
self.do_run(src, emcc_args=['-sMALLOC=mimalloc'])
14660+
14661+
def test_SUPPORT_BIG_ENDIAN(self):
14662+
self.run_process([EMCC, '-sSUPPORT_BIG_ENDIAN', test_file('hello_world.c')])

0 commit comments

Comments
 (0)