diff options
author | David Cournapeau <cournape@gmail.com> | 2014-07-06 17:57:01 +0900 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2014-07-06 17:57:01 +0900 |
commit | 2b1179f65717c8c1b4c54517573c43f4b15cc34b (patch) | |
tree | d3097578205254b32572bc209c4c9d2bc6136177 /numpy/distutils/command/config.py | |
parent | 4769fe79bb5c2d4649fa2845009a0ceae94524c2 (diff) | |
download | numpy-2b1179f65717c8c1b4c54517573c43f4b15cc34b.tar.gz |
FEAT: add check to ensure compilation without warning for a piece of code.
Diffstat (limited to 'numpy/distutils/command/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index 0334f342c..512471d7f 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -17,7 +17,9 @@ import distutils from numpy.distutils.exec_command import exec_command from numpy.distutils.mingw32ccompiler import generate_manifest from numpy.distutils.command.autodist import (check_gcc_function_attribute, - check_inline, check_compiler_gcc4) + check_inline, + check_compiler_gcc4, + check_compile_without_warning) from numpy.distutils.compat import get_exception LANG_EXT['f77'] = '.f' @@ -426,6 +428,10 @@ int main () def check_gcc_function_attribute(self, attribute, name): return check_gcc_function_attribute(self, attribute, name) + def check_compile_without_warning(self, code): + """Returns True if the given code may be compiled without warning.""" + return check_compile_without_warning(self, code) + def get_output(self, body, headers=None, include_dirs=None, libraries=None, library_dirs=None, lang="c", use_tee=None): |