diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 0bf2ad469..659d019ab 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -199,16 +199,6 @@ else() message(STATUS "checking for execinfo -- not found") endif() -# __builtin_clz is available since gcc 3.4 -try_compile(HAS___BUILTIN_CLZ - ${CMAKE_BINARY_DIR} - ${CMAKE_SOURCE_DIR}/build-tests/__builtin_clz.c) -if(HAS___BUILTIN_CLZ) - message(STATUS "checking for __builtin_clz -- yes") -else() - message(STATUS "checking for __builtin_clz -- no") -endif() - set(AWESOME_REQUIRED_LDFLAGS ${AWESOME_COMMON_REQUIRED_LDFLAGS} ${AWESOME_REQUIRED_LDFLAGS} diff --git a/build-tests/__builtin_clz.c b/build-tests/__builtin_clz.c deleted file mode 100644 index b4ab53785..000000000 --- a/build-tests/__builtin_clz.c +++ /dev/null @@ -1,14 +0,0 @@ -/* - * build-tests/__builtin_clz.c - * - * test if the compiler has __builtin_clz(). - */ - -int -main(void) -{ - - return (__builtin_clz(42)); -} - -// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/config.h b/config.h index 94c64070a..b599a90ed 100644 --- a/config.h +++ b/config.h @@ -7,7 +7,6 @@ #cmakedefine WITH_DBUS #cmakedefine HAS_EXECINFO -#cmakedefine HAS___BUILTIN_CLZ #endif //_CONFIG_H_