Skip to content

Commit 94ae806

Browse files
author
Release Manager
committed
gh-40906: Do not swallow the configure exit code in configure_wrapper Followup for #39363: do not ignore the ./configure exit code URL: #40906 Reported by: Volker Braun Reviewer(s): Dima Pasechnik
2 parents 47172a6 + 1f1fa4f commit 94ae806

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)