diff options
author | Soni L <EnderMoneyMod@gmail.com> | 2023-11-12 15:02:35 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-12 10:02:35 -0800 |
commit | b1c039bdf784db8d5e5027dfbe6eefb2dc86ec12 (patch) | |
tree | 2ea29dabf53e9751025c6a7b78304cca5deffad3 /CMakeLists.txt | |
parent | e97d53c5fcbb604fc36432df4fc117d13558d7fd (diff) | |
download | wabt-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.txt | 4 |
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 () |