summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/autodist.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2014-07-06 03:17:22 -0700
committerDavid Cournapeau <cournape@gmail.com>2014-07-06 03:17:22 -0700
commit8457aab2ad29745dc8984a467a79c7673b9f636a (patch)
treefcc41812a2aa62737f7b92821edaacacf4eea6c0 /numpy/distutils/command/autodist.py
parent6b030998719b22d554181b8f94e85605529305cb (diff)
downloadnumpy-8457aab2ad29745dc8984a467a79c7673b9f636a.tar.gz
BUG: fix check_gcc_function_attribute when attribute is actually supported.
Diffstat (limited to 'numpy/distutils/command/autodist.py')
-rw-r--r--numpy/distutils/command/autodist.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/numpy/distutils/command/autodist.py b/numpy/distutils/command/autodist.py
index 1c0dc7db1..61afc0233 100644
--- a/numpy/distutils/command/autodist.py
+++ b/numpy/distutils/command/autodist.py
@@ -46,14 +46,7 @@ main()
def check_gcc_function_attribute(cmd, attribute, name):
"""Return True if the given function attribute is supported."""
cmd._check_compiler()
- body = """
-int %s %s(void*);
-
-int
-main()
-{
-}
-""" % (attribute, name)
+ body = "int %s %s(void*);" % (attribute, name)
ret, output = cmd.try_output_compile(body, None, None)
if not ret or len(output) > 0:
return False