diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f53f2f..0a835c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,15 +218,19 @@ if(NOT WIN32) check_symbol_exists(utimes "sys/time.h" INNOEXTRACT_HAVE_UTIMES) endif() - check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP16 "__builtin_bswap16(0)") + if(CMAKE_CXX_COMPILER_ID STREQUAL "PathScale") + # EKOPath recognizes these but then fails to link + else() + check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP16 "__builtin_bswap16(0)") + check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP32 "__builtin_bswap32(0)") + check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP64 "__builtin_bswap64(0)") + endif() if(NOT INNOEXTRACT_HAVE_BUILTIN_BSWAP16) check_symbol_exists(bswap_16 "byteswap.h" INNOEXTRACT_HAVE_BSWAP_16) endif() - check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP32 "__builtin_bswap32(0)") if(NOT INNOEXTRACT_HAVE_BUILTIN_BSWAP32) check_symbol_exists(bswap_32 "byteswap.h" INNOEXTRACT_HAVE_BSWAP_32) endif() - check_builtin(INNOEXTRACT_HAVE_BUILTIN_BSWAP64 "__builtin_bswap64(0)") if(NOT INNOEXTRACT_HAVE_BUILTIN_BSWAP64) check_symbol_exists(bswap_64 "byteswap.h" INNOEXTRACT_HAVE_BSWAP_64) endif()