From 4769fe79bb5c2d4649fa2845009a0ceae94524c2 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Sun, 6 Jul 2014 17:17:41 +0900 Subject: FEAT: add check_gcc_function_attribute check. --- numpy/distutils/command/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'numpy/distutils/command/config.py') diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index e96b88319..0334f342c 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -16,7 +16,8 @@ from distutils.ccompiler import CompileError, LinkError import distutils from numpy.distutils.exec_command import exec_command from numpy.distutils.mingw32ccompiler import generate_manifest -from numpy.distutils.command.autodist import check_inline, check_compiler_gcc4 +from numpy.distutils.command.autodist import (check_gcc_function_attribute, + check_inline, check_compiler_gcc4) from numpy.distutils.compat import get_exception LANG_EXT['f77'] = '.f' @@ -422,6 +423,9 @@ int main () """Return True if the C compiler is gcc >= 4.""" return check_compiler_gcc4(self) + def check_gcc_function_attribute(self, attribute, name): + return check_gcc_function_attribute(self, attribute, name) + def get_output(self, body, headers=None, include_dirs=None, libraries=None, library_dirs=None, lang="c", use_tee=None): -- cgit v1.2.1