From b1c039bdf784db8d5e5027dfbe6eefb2dc86ec12 Mon Sep 17 00:00:00 2001 From: Soni L Date: Sun, 12 Nov 2023 15:02:35 -0300 Subject: Clean up WABT_BIG_ENDIAN handling in tests (#2326) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') 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 () -- cgit v1.2.3