gh-100220: Fix error handling in make rules (GH-100328)
Set `SHELL = /bin/sh -e` to ensure that complex recipes fail on the first error rather than incorrectly reporting success. Co-authored-by: Zachary Ware <zach@python.org>
This commit is contained in:
parent
2667452945
commit
a90863c993
@ -59,7 +59,7 @@ DSYMUTIL_PATH= @DSYMUTIL_PATH@
|
||||
GNULD= @GNULD@
|
||||
|
||||
# Shell used by make (some versions default to the login shell, which is bad)
|
||||
SHELL= /bin/sh
|
||||
SHELL= /bin/sh -e
|
||||
|
||||
# Use this to make a link between python$(VERSION) and python in $(BINDIR)
|
||||
LN= @LN@
|
||||
|
@ -0,0 +1,4 @@
|
||||
Changed the default value of the ``SHELL`` Makefile variable from ``/bin/sh``
|
||||
to ``/bin/sh -e`` to ensure that complex recipes correctly fail after an error.
|
||||
Previously, ``make install`` could fail to install some files and yet return
|
||||
a successful result.
|
Loading…
x
Reference in New Issue
Block a user