diff options
author | mattip <matti.picus@gmail.com> | 2019-10-25 00:24:42 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2019-10-25 11:31:33 +0300 |
commit | 3356d994fcf3fdfcfedc70185fc013501a87a4b9 (patch) | |
tree | dce5e3526624937eb762efc716873bcc9bc06024 /numpy/core | |
parent | 396af7def65e75b6ef8a4e82f8aa8a357a9230f4 (diff) | |
download | numpy-3356d994fcf3fdfcfedc70185fc013501a87a4b9.tar.gz |
BUILD: add std=c99 flag for gcc, cleanup error reporting
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/setup.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 7bbe27c4d..a33318472 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -655,11 +655,10 @@ def configuration(parent_package='',top_path=None): # compiler does not work). st = config_cmd.try_link('int main(void) { return 0;}') if not st: + # rerun the failing command in verbose mode 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" - ) + config_cmd.try_link('int main(void) { return 0;}') + raise RuntimeError("Broken toolchain: cannot link a simple C program") mlibs = check_mathlib(config_cmd) posix_mlib = ' '.join(['-l%s' % l for l in mlibs]) |