Support: Add Endian.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117057 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael J. Spencer
2010-10-21 20:28:21 +00:00
parent d451f888b8
commit 5e0b2bf657
5 changed files with 308 additions and 1 deletions

View File

@@ -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 )