diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-10-13 12:36:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-13 12:36:53 -0400 |
commit | edf2130edb3a84b16c84bee7749b7bc57d10a837 (patch) | |
tree | 6caa4e7d54390e9b54a3ff11f068cd003c622017 /numpy/core/setup.py | |
parent | e5d7653f8456c66ccb005eb50a139b1a9b044b3f (diff) | |
parent | 5b38e86dc118ed3afece54cb6b01bef0c7a1a4df (diff) | |
download | numpy-edf2130edb3a84b16c84bee7749b7bc57d10a837.tar.gz |
Merge pull request #8141 from juliantaylor/build-fixes
improve configure checks for broken systems
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 0b055dba4..07c8478cd 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -152,12 +152,14 @@ def check_math_capabilities(config, moredefs, mathlibs): for tup in OPTIONAL_INTRINSICS: headers = None if len(tup) == 2: - f, args = tup + f, args, m = tup[0], tup[1], fname2def(tup[0]) + elif len(tup) == 3: + f, args, headers, m = tup[0], tup[1], [tup[2]], fname2def(tup[0]) else: - f, args, headers = tup[0], tup[1], [tup[2]] + f, args, headers, m = tup[0], tup[1], [tup[2]], fname2def(tup[3]) if config.check_func(f, decl=False, call=True, call_args=args, headers=headers): - moredefs.append((fname2def(f), 1)) + moredefs.append((m, 1)) for dec, fn in OPTIONAL_FUNCTION_ATTRIBUTES: if config.check_gcc_function_attribute(dec, fn): |