diff options
author | mattip <matti.picus@gmail.com> | 2019-10-24 18:49:36 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-10-25 00:27:18 +0300 |
commit | 396af7def65e75b6ef8a4e82f8aa8a357a9230f4 (patch) | |
tree | 4e373bb16120f150777f2a8dcdbf276c1f851484 /numpy/core/setup.py | |
parent | a2a131fb95700395b606f85f19edb49f50d6d5fa (diff) | |
download | numpy-396af7def65e75b6ef8a4e82f8aa8a357a9230f4.tar.gz |
BUILD: emit more helpful error messages when compiler is broken
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 5f2f4a7b2..7bbe27c4d 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -655,7 +655,11 @@ def configuration(parent_package='',top_path=None): # compiler does not work). st = config_cmd.try_link('int main(void) { return 0;}') if not st: - raise RuntimeError("Broken toolchain: cannot link a simple C program") + config_cmd.compiler.verbose = True + st = config_cmd.try_link('int main(void) { return 0;}') + raise RuntimeError("Broken toolchain: cannot link a simple C program " + "when using these flags:\n" + ) mlibs = check_mathlib(config_cmd) posix_mlib = ' '.join(['-l%s' % l for l in mlibs]) |