Skip to content

Commit b21d0f8

Browse files
Update javascript CMakeLists.txt to add SUPPORT_BIG_ENDIAN (#1857)
Summary: Add support for Big Endian in Yoga WASM so that it works on big endian platforms like Linux on Z, z/OS, AIX and others. SUPPORT_BIG_ENDIAN - This makes generated JavaScript run on BE as well as LE machines: https://github.com/emscripten-core/emscripten/blob/6b8bba1add53b1f039717998fb784b7bdf5d510b/site/source/docs/tools_reference/settings_reference.rst#support_big_endian Pull Request resolved: #1857 Reviewed By: rshest Differential Revision: D83065095 Pulled By: arushikesarwani94 fbshipit-source-id: 6e75d96f1c29299efb394578273fb8c58879a0bf
1 parent dc2581f commit b21d0f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ add_link_options(
4545
"SHELL:-s EXPORT_ES6=1"
4646
"SHELL:-s WASM=1"
4747
"SHELL:-s TEXTDECODER=0"
48+
"SHELL:-s SUPPORT_BIG_ENDIAN=1"
4849
# SINGLE_FILE=1 combined with ENVIRONMENT='web' creates code that works on
4950
# both bundlders and Node.
5051
"SHELL:-s SINGLE_FILE=1"

0 commit comments

Comments
 (0)