diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-04-12 13:55:01 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-04-23 22:46:47 +0200 |
commit | d598cf1854d84e652ec1e35bb726b147fd6b311d (patch) | |
tree | d15227116dd306694c826b384da9def4c9de8dd2 /numpy/core/setup_common.py | |
parent | d0b3f8f4213ee2d285be7d410a0cd7a1a601a7bd (diff) | |
download | numpy-d598cf1854d84e652ec1e35bb726b147fd6b311d.tar.gz |
BLD: allow strings for check_func declarations
makes attribute checks more sane and allows adding nonnull
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r-- | numpy/core/setup_common.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py index af2590fc7..4188f4c3f 100644 --- a/numpy/core/setup_common.py +++ b/numpy/core/setup_common.py @@ -127,6 +127,8 @@ OPTIONAL_GCC_ATTRIBUTES = [('__attribute__((optimize("unroll-loops")))', 'attribute_optimize_unroll_loops'), ('__attribute__((optimize("O3")))', 'attribute_optimize_opt_3'), + ('__attribute__((nonnull (1)))', + 'attribute_nonnull'), ] # Subset of OPTIONAL_STDFUNCS which may alreay have HAVE_* defined by Python.h |