c]g > d Z ddlZd Zd Zd Zd dZd Zd Zd ZdS )zKThis module implements additional tests ala autoconf which can be useful. Nc | t j d }dD ]$}| |d|iz dd }|r|c S %dS )z,Return the inline identifier (may be empty).z #ifndef __cplusplus static %(inline)s int static_func (void) { return 0; } %(inline)s int nostatic_func (void) { return 0; } #endif)inline __inline____inliner N _check_compilertextwrapdedenttry_compilecmdbodykwsts t/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/distutils/command/autodist.pycheck_inliner sv ? D 3 __TXrN2D$ ? ? III 2 c | t j d }dD ]$}| |d|iz dd }|r|c S %dS )z.Return the restrict identifier (may be empty).zj static int static_func (char * %(restrict)s a) { return 0; } )restrict__restrict__ __restrictr Nr r r s r check_restrictr sw ? D 9 __TZ$44dD A A III 2r c | t j d }| |dd S )zCheck if the compiler is GCC.z int main() { #if (! defined __GNUC__) #error gcc required #endif return 0; } Nr )r r s r check_compiler_gccr 1 sD ? D ??4t,,,r c | d t | t | t | g }t j d }||||d}| ||z dd S )zB Check that the gcc version is at least the specified version..a1 int main() { #if (! defined __GNUC__) || (__GNUC__ < %(major)d) || \ (__GNUC_MINOR__ < %(minor)d) || \ (__GNUC_PATCHLEVEL__ < %(patchlevel)d) #error gcc >= %(version)s required #endif return 0; } )versionmajorminor patchlevelN)r joinstrr r r )r r r r! r r r s r check_gcc_version_at_leastr$ B s hhE CJJJ@AAG? D uu" $ $B ??4"9dD111r c | t j d ||fz }| |dd dk S )z9Return True if the given function attribute is supported.a #pragma GCC diagnostic error "-Wattributes" #pragma clang diagnostic error "-Wattributes" int %s %s(void* unused) { return 0; } int main() { return 0; } Nr r )r attributenamer s r check_gcc_function_attributer( Z sV ? 4 !D ??4t,,11r c | t j d ||||fz }| |dd dk S )zMReturn True if the given function attribute is supported with intrinsics.z #include<%s> int %s %s(void) { %s; return 0; } int main() { return 0; } Nr r )r r&