Support: Add Endian.h
[oota-llvm.git] / cmake / config-ix.cmake
index 16c17e20ec94fbaa6967720ad188b3aef67abda9..3355c0d50638f3f8d8cab9eb1921e2d67be5ee06 100755 (executable)
@@ -3,6 +3,7 @@ include(CheckLibraryExists)
 include(CheckSymbolExists)
 include(CheckFunctionExists)
 include(CheckCXXSourceCompiles)
+include(TestBigEndian)
 
 if( UNIX AND NOT BEOS )
   # Used by check_symbol_exists:
@@ -257,6 +258,8 @@ if( LLVM_ENABLE_THREADS )
   endif()
 endif()
 
+test_big_endian(LLVM_IS_TARGET_BIG_ENDIAN)
+
 if( ENABLE_THREADS )
   message(STATUS "Threads enabled.")
 else( ENABLE_THREADS )