- Source code: cmake/modules/PHP/CheckBuiltin.cmake
Check whether compiler supports one of the built-in functions __builtin_*()
.
Module exposes the following function:
php_check_builtin(<builtin> <result_var>)
If builtin <builtin>
is supported by the C compiler, store the check result in
the cache variable <result_var>
.
# CMakeLists.txt
include(PHP/CheckBuiltin)
php_check_builtin(__builtin_clz PHP_HAVE_BUILTIN_CLZ)