Skip to content

Commit

Permalink
Merge pull request #21472 from charris/backport-21442
Browse files Browse the repository at this point in the history
BUG: Ensure compile errors are raised correclty
  • Loading branch information
charris committed May 9, 2022
2 parents 8b09bba + cd57c8b commit 159438b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpy/distutils/ccompiler.py
Expand Up @@ -357,7 +357,8 @@ def single_compile(args):
# 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:
Expand Down

0 comments on commit 159438b

Please sign in to comment.