Skip to content

Commit 1f1fa4f

Browse files
committed
Do not swallow the configure exit code in configure_wrapper
1 parent f4adc25 commit 1f1fa4f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

configure_wrapper

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
#! /bin/sh
2+
3+
# Note: ./configure will remove all conftest* files, including the
4+
# pytest conftest.py. We work around this by making a copy and
5+
# restoring when we are done, regardless of whether configure succeeds
6+
# or fails.
7+
8+
set -e
9+
10+
trap 'mv bak_conftest.py conftest.py; trap - EXIT; exit' EXIT INT HUP TERM
11+
212
cp conftest.py bak_conftest.py
313
./real_configure $@
4-
mv bak_conftest.py conftest.py

0 commit comments

Comments
 (0)