summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-04-05 09:06:38 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-04-05 09:06:38 +0000
commitb924a621e952570c359892bc335d4ef34a5e6a14 (patch)
treea7adda61ad865b10ff56cd684d116e5f14ddeb3a /numpy/core/setup.py
parent826add2f128029d6afb85e44de224f3d59837f6e (diff)
downloadnumpy-b924a621e952570c359892bc335d4ef34a5e6a14.tar.gz
Fail early when toolchain is broken on target platform.
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 8ec4eb0bf..3c453788a 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -282,6 +282,11 @@ def configuration(parent_package='',top_path=None):
config_cmd = config.get_config_cmd()
log.info('Generating %s',target)
+ # Check that the toolchain works, to fail early if it doesn't
+ # (avoid late errors with MATHLIB which are confusing if the
+ # compiler does not work).
+ config_cmd.try_link('int main(void) { return 0;}')
+
# Check sizeof
moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)