summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSoni L <EnderMoneyMod@gmail.com>2023-11-12 15:02:35 -0300
committerGitHub <noreply@github.com>2023-11-12 10:02:35 -0800
commitb1c039bdf784db8d5e5027dfbe6eefb2dc86ec12 (patch)
tree2ea29dabf53e9751025c6a7b78304cca5deffad3 /CMakeLists.txt
parente97d53c5fcbb604fc36432df4fc117d13558d7fd (diff)
downloadwabt-b1c039bdf784db8d5e5027dfbe6eefb2dc86ec12.tar.gz
wabt-b1c039bdf784db8d5e5027dfbe6eefb2dc86ec12.tar.bz2
wabt-b1c039bdf784db8d5e5027dfbe6eefb2dc86ec12.zip
Clean up WABT_BIG_ENDIAN handling in tests (#2326)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4cdd0bdc..a4057457 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -647,6 +647,10 @@ if (BUILD_TESTS)
set(WASM2C_CFLAGS "${WASM2C_CFLAGS} -g -O0")
endif ()
+ if (WABT_BIG_ENDIAN)
+ set(WASM2C_CFLAGS "${WASM2C_CFLAGS} -DWABT_BIG_ENDIAN=1")
+ endif ()
+
if (DEFINED CMAKE_OSX_SYSROOT)
set(WASM2C_CFLAGS "${WASM2C_CFLAGS} -isysroot ${CMAKE_OSX_SYSROOT}")
endif ()