X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=cmake%2Fconfig-ix.cmake;h=3fd0c456750850dc8a8669d10a07e446f916fa75;hb=fdbdaaca2c0ad84009c173b95d49aa9b30ae806e;hp=cb83eab2a5b63f9f54f05648f22e361009c07ea8;hpb=c8417d7165e156739cd768713db0113383ede07e;p=oota-llvm.git diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index cb83eab2a5b..3fd0c456750 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -3,6 +3,7 @@ include(CheckLibraryExists) include(CheckSymbolExists) include(CheckFunctionExists) include(CheckCXXSourceCompiles) +include(TestBigEndian) if( UNIX AND NOT BEOS ) # Used by check_symbol_exists: @@ -165,6 +166,8 @@ if( NOT WIN32 ) check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG) endif() +check_cxx_compiler_flag("-Wno-variadic-macros" SUPPORTS_NO_VARIADIC_MACROS_FLAG) + include(GetTargetTriple) get_target_triple(LLVM_HOSTTRIPLE) @@ -195,8 +198,6 @@ elseif (LLVM_NATIVE_ARCH MATCHES "arm") set(LLVM_NATIVE_ARCH ARM) elseif (LLVM_NATIVE_ARCH MATCHES "mips") set(LLVM_NATIVE_ARCH Mips) -elseif (LLVM_NATIVE_ARCH MATCHES "pic16") - set(LLVM_NATIVE_ARCH "PIC16") elseif (LLVM_NATIVE_ARCH MATCHES "xcore") set(LLVM_NATIVE_ARCH XCore) elseif (LLVM_NATIVE_ARCH MATCHES "msp430") @@ -276,7 +277,7 @@ configure_file( ) configure_file( - ${LLVM_MAIN_INCLUDE_DIR}/llvm/System/DataTypes.h.cmake - ${LLVM_BINARY_DIR}/include/llvm/System/DataTypes.h + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Support/DataTypes.h.cmake + ${LLVM_BINARY_DIR}/include/llvm/Support/DataTypes.h )