Stop checking for __builtin_clz (#985)
Since commit 19137a55
we no longer use this builtin, so we don't have to check
for it anymore either.
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
441587a4de
commit
2e6358ca2d
|
@ -199,16 +199,6 @@ else()
|
||||||
message(STATUS "checking for execinfo -- not found")
|
message(STATUS "checking for execinfo -- not found")
|
||||||
endif()
|
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
|
set(AWESOME_REQUIRED_LDFLAGS
|
||||||
${AWESOME_COMMON_REQUIRED_LDFLAGS}
|
${AWESOME_COMMON_REQUIRED_LDFLAGS}
|
||||||
${AWESOME_REQUIRED_LDFLAGS}
|
${AWESOME_REQUIRED_LDFLAGS}
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in New Issue