File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,10 @@ set_target_properties(whisper PROPERTIES
94
94
target_include_directories (whisper PUBLIC . ../include )
95
95
target_compile_features (whisper PUBLIC cxx_std_11 ) # don't bump
96
96
97
+ if (CMAKE_CXX_BYTE_ORDER STREQUAL "BIG_ENDIAN" )
98
+ set (WHISPER_EXTRA_FLAGS ${WHISPER_EXTRA_FLAGS} -DWHISPER_BIG_ENDIAN )
99
+ endif ()
100
+
97
101
if (WHISPER_EXTRA_FLAGS )
98
102
target_compile_options (whisper PRIVATE ${WHISPER_EXTRA_FLAGS} )
99
103
endif ()
Original file line number Diff line number Diff line change 39
39
#pragma warning(disable: 4244 4267) // possible loss of data
40
40
#endif
41
41
42
- #if defined(GGML_BIG_ENDIAN )
42
+ #if defined(WHISPER_BIG_ENDIAN )
43
43
template <typename T>
44
44
static T byteswap (T value) {
45
45
T value_swapped;
You can’t perform that action at this time.
0 commit comments