diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2022-05-05 10:50:50 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-05 10:50:50 -0600 |
| commit | 7f77205be5303e8bc06036fa29ed1846652d6bdf (patch) | |
| tree | 17a02aa0c54f4bbfcba51c7551e2beab612d789e | |
| parent | 4c3958b98913e6d77c751cd4556efbb27e43c446 (diff) | |
| parent | 806d126d5f0c657ea53cf7acc6941b77960dd0a3 (diff) | |
| download | numpy-7f77205be5303e8bc06036fa29ed1846652d6bdf.tar.gz | |
Merge pull request #21442 from seberg/ensure-compile-errors-fail
BUG: Ensure compile errors are raised correctly
| -rw-r--r-- | numpy/distutils/ccompiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index df268d1de..8697fae62 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -357,7 +357,8 @@ def CCompiler_compile(self, sources, output_dir=None, macros=None, # build parallel from concurrent.futures import ThreadPoolExecutor with ThreadPoolExecutor(jobs) as pool: - pool.map(single_compile, build_items) + res = pool.map(single_compile, build_items) + list(res) # access result to raise errors else: # build serial for o in build_items: |
